// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'preview_order_payment_model.dart';

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

PreviewOrderPaymentModel _$PreviewOrderPaymentModelFromJson(
  Map<String, dynamic> json,
) => PreviewOrderPaymentModel(
  totalCashCoupon: (json['total_cash_coupon'] as num?)?.toInt(),
  feesPrice: (json['fees_price'] as num?)?.toInt(),
  totalCash: (json['total_cash'] as num?)?.toInt(),
  feeNote: json['fee_note'] as String?,
  pointData:
      json['point_data'] == null
          ? null
          : PreviewOrderPaymentPointDataModel.fromJson(
            json['point_data'] as Map<String, dynamic>,
          ),
  productInfo:
      (json['product_info'] as List<dynamic>?)
          ?.map(
            (e) => PreviewOrderProductInfoModel.fromJson(
              e as Map<String, dynamic>,
            ),
          )
          .toList(),
  totalPrice: (json['total_price'] as num?)?.toInt(),
  discountCouponValue: (json['discount_coupon_value'] as num?)?.toInt(),
  paymentMethod: json['payment_method'] as String?,
  productType: json['product_type'] as String?,
);

Map<String, dynamic> _$PreviewOrderPaymentModelToJson(
  PreviewOrderPaymentModel instance,
) => <String, dynamic>{
  'total_cash_coupon': instance.totalCashCoupon,
  'fees_price': instance.feesPrice,
  'total_cash': instance.totalCash,
  'fee_note': instance.feeNote,
  'point_data': instance.pointData,
  'product_info': instance.productInfo,
  'total_price': instance.totalPrice,
  'discount_coupon_value': instance.discountCouponValue,
  'payment_method': instance.paymentMethod,
  'product_type': instance.productType,
};
