// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'order_product_payment_response_model.dart';

// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************

OrderProductPaymentResponseModel _$OrderProductPaymentResponseModelFromJson(
  Map<String, dynamic> json,
) => OrderProductPaymentResponseModel(
  id: json['id'] as String?,
  paymentMethod: json['payment_method'] as String?,
  paymentType: json['payment_type'] as String?,
  paymentPartner: json['payment_partner'] as String?,
  paymentUrl: json['payment_url'] as String?,
  requestId: json['request_id'] as String?,
  items:
      (json['items'] as List<dynamic>?)
          ?.map(
            (e) =>
                OrderItemsProductResponse.fromJson(e as Map<String, dynamic>),
          )
          .toList(),
  subtotal: (json['subtotal'] as num?)?.toInt(),
  paymentTransactionId: json['payment_transaction_id'] as String?,
  createdAt: json['created_at'] as String?,
);

Map<String, dynamic> _$OrderProductPaymentResponseModelToJson(
  OrderProductPaymentResponseModel instance,
) => <String, dynamic>{
  'id': instance.id,
  'payment_method': instance.paymentMethod,
  'payment_type': instance.paymentType,
  'payment_partner': instance.paymentPartner,
  'payment_url': instance.paymentUrl,
  'request_id': instance.requestId,
  'items': instance.items,
  'subtotal': instance.subtotal,
  'payment_transaction_id': instance.paymentTransactionId,
  'created_at': instance.createdAt,
};
