// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'transaction_history_model.dart';

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

TransactionHistoryModel _$TransactionHistoryModelFromJson(
  Map<String, dynamic> json,
) => TransactionHistoryModel(
  id: json['id'] as String?,
  transactionId: json['transaction_id'] as String?,
  itemId: json['item_id'] as String?,
  name: json['name'] as String?,
  statusCode: json['status_code'] as String?,
  status: json['status'] as String?,
  payPoint: json['pay_point'] as String?,
  payCash: json['pay_cash'] as String?,
  logo: json['logo'] as String?,
  payTotal: json['pay_total'] as String?,
  createdAt: json['created_at'] as String?,
  sourceCash: json['source_cash'] as String?,
  feesPrice: json['fees_price'] as String?,
  productTypeRaw: json['product_type'] as String?,
  productInfo:
      (json['product_info'] as List<dynamic>?)
          ?.map((e) => ProductInfoModel.fromJson(e as Map<String, dynamic>))
          .toList(),
);

Map<String, dynamic> _$TransactionHistoryModelToJson(
  TransactionHistoryModel instance,
) => <String, dynamic>{
  'id': instance.id,
  'transaction_id': instance.transactionId,
  'item_id': instance.itemId,
  'name': instance.name,
  'status_code': instance.statusCode,
  'status': instance.status,
  'pay_point': instance.payPoint,
  'pay_cash': instance.payCash,
  'logo': instance.logo,
  'pay_total': instance.payTotal,
  'created_at': instance.createdAt,
  'source_cash': instance.sourceCash,
  'fees_price': instance.feesPrice,
  'product_type': instance.productTypeRaw,
  'product_info': instance.productInfo,
};
