// GENERATED CODE - DO NOT MODIFY BY HAND part of 'product.dart'; // ************************************************************************** // JsonSerializableGenerator // ************************************************************************** Product _$ProductFromJson(Map json) => Product( id: json['id'] as String?, createTime: json['createTime'] as String?, createUser: json['createUser'] as String?, updateTime: json['updateTime'] as String?, updateUser: json['updateUser'] as String?, tenantCode: json['tenantCode'], storeId: json['storeId'] as String?, orderId: json['orderId'] as String?, productId: json['productId'] as String?, productName: json['productName'] as String?, skuId: json['skuId'] as String?, skuNameStr: json['skuNameStr'] as String?, skuImg: json['skuImg'] as String?, buyNum: (json['buyNum'] as num?)?.toInt(), refundNum: (json['refundNum'] as num?)?.toInt(), weight: (json['weight'] as num?)?.toDouble(), applyPrice: json['applyPrice'] as String?, sellPrice: json['sellPrice'] as String?, postPay: json['postPay'] as String?, isDelete: (json['isDelete'] as num?)?.toInt(), discountAmount: json['discountAmount'] as String?, discountPercent: (json['discountPercent'] as num?)?.toInt(), status: json['status'] as bool?, batch: (json['batch'] as num?)?.toInt(), ); Map _$ProductToJson(Product instance) => { 'id': instance.id, 'createTime': instance.createTime, 'createUser': instance.createUser, 'updateTime': instance.updateTime, 'updateUser': instance.updateUser, 'tenantCode': instance.tenantCode, 'storeId': instance.storeId, 'orderId': instance.orderId, 'productId': instance.productId, 'productName': instance.productName, 'skuId': instance.skuId, 'skuNameStr': instance.skuNameStr, 'skuImg': instance.skuImg, 'buyNum': instance.buyNum, 'refundNum': instance.refundNum, 'weight': instance.weight, 'applyPrice': instance.applyPrice, 'sellPrice': instance.sellPrice, 'postPay': instance.postPay, 'isDelete': instance.isDelete, 'discountAmount': instance.discountAmount, 'discountPercent': instance.discountPercent, 'status': instance.status, 'batch': instance.batch, };