You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
322 lines
13 KiB
322 lines
13 KiB
1 month ago
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||
|
|
||
|
part of 'order_info.dart';
|
||
|
|
||
|
// **************************************************************************
|
||
|
// JsonSerializableGenerator
|
||
|
// **************************************************************************
|
||
|
|
||
|
OrderInfo _$OrderInfoFromJson(Map<String, dynamic> json) => OrderInfo()
|
||
|
..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'] as String?
|
||
|
..storeId = json['storeId'] as String?
|
||
|
..storeName = json['storeName'] as String?
|
||
|
..tableId = json['tableId'] as String?
|
||
|
..mid = json['mid'] as String?
|
||
|
..parentId = json['parentId'] as String?
|
||
|
..parentCode = json['parentCode'] as String?
|
||
|
..orderCode = json['orderCode'] as String?
|
||
|
..dayFlowCode = json['dayFlowCode'] as String?
|
||
|
..orderStatus = (json['orderStatus'] as num?)?.toInt()
|
||
|
..sendStatus = (json['sendStatus'] as num?)?.toInt()
|
||
|
..payStatus = (json['payStatus'] as num?)?.toInt()
|
||
|
..memberAccount = json['memberAccount'] as String?
|
||
|
..logisticsId = json['logisticsId'] as String?
|
||
|
..shipperCode = json['shipperCode'] as String?
|
||
|
..logisticsName = json['logisticsName'] as String?
|
||
|
..logisticsNum = json['logisticsNum'] as String?
|
||
|
..logisticsCase = json['logisticsCase']
|
||
|
..refundStatus = (json['refundStatus'] as num?)?.toInt()
|
||
|
..addressExt = json['addressExt'] == null
|
||
|
? null
|
||
|
: AddressExt.fromJson(json['addressExt'] as Map<String, dynamic>)
|
||
|
..postFee = json['postFee'] as String?
|
||
|
..orderSum = json['orderSum'] as String?
|
||
|
..paySum = json['paySum'] as String?
|
||
|
..paySumSub = json['paySumSub'] as String?
|
||
|
..accountPay = json['accountPay'] as String?
|
||
|
..couponSubPrice = json['couponSubPrice'] as String?
|
||
|
..customPrice = json['customPrice'] as String?
|
||
|
..removeDecimal = json['removeDecimal'] as String?
|
||
|
..isSubscribe = json['isSubscribe'] as bool?
|
||
|
..subcribeTime = json['subcribeTime'] as String?
|
||
|
..sendTime = json['sendTime']
|
||
|
..confirmTime = json['confirmTime']
|
||
|
..returnMoneyTime = json['returnMoneyTime']
|
||
|
..notes = json['notes'] as String?
|
||
|
..prepayId = json['prepayId']
|
||
|
..payTime = json['payTime'] as String?
|
||
|
..payChannel = (json['payChannel'] as num?)?.toInt()
|
||
|
..payNum = json['payNum'] as String?
|
||
|
..promotionId = json['promotionId'] as String?
|
||
|
..couponId = json['couponId'] as String?
|
||
|
..isDelete = (json['isDelete'] as num?)?.toInt()
|
||
|
..isTakeOut = (json['isTakeOut'] as num?)?.toInt()
|
||
|
..batch = (json['batch'] as num?)?.toInt()
|
||
|
..orderDiscountPrice = json['orderDiscountPrice'] as String?
|
||
|
..dishesDiscountPrice = json['dishesDiscountPrice'] as String?
|
||
|
..orderPercentPrice = json['orderPercentPrice'] as String?
|
||
|
..finalPayPrice = json['finalPayPrice'] as String?
|
||
|
..activityNoPrice = json['activityNoPrice'] as String?
|
||
|
..activityDiscountPrice = json['activityDiscountPrice'] as String?
|
||
|
..benefitDiscountAmount = json['benefitDiscountAmount'] as String?
|
||
|
..totalDiscountPrice = json['totalDiscountPrice'] as String?
|
||
|
..totalPackagingFee = json['totalPackagingFee'] as String?
|
||
|
..vipDiscountPrice = json['vipDiscountPrice'] as String?
|
||
|
..orderSource = (json['orderSource'] as num?)?.toInt()
|
||
|
..orderType = (json['orderType'] as num?)?.toInt()
|
||
|
..storeVO = json['storeVO'] == null
|
||
|
? null
|
||
|
: StoreVO.fromJson(json['storeVO'] as Map<String, dynamic>)
|
||
|
..orderDetail = json['orderDetail'] == null
|
||
|
? null
|
||
|
: OrderDetail.fromJson(json['orderDetail'] as Map<String, dynamic>)
|
||
|
..productList = (json['productList'] as List<dynamic>?)
|
||
|
?.map((e) => OrderProductVO.fromJson(e as Map<String, dynamic>))
|
||
|
.toList();
|
||
|
|
||
|
Map<String, dynamic> _$OrderInfoToJson(OrderInfo instance) => <String, dynamic>{
|
||
|
'id': instance.id,
|
||
|
'createTime': instance.createTime,
|
||
|
'createUser': instance.createUser,
|
||
|
'updateTime': instance.updateTime,
|
||
|
'updateUser': instance.updateUser,
|
||
|
'tenantCode': instance.tenantCode,
|
||
|
'storeId': instance.storeId,
|
||
|
'storeName': instance.storeName,
|
||
|
'tableId': instance.tableId,
|
||
|
'mid': instance.mid,
|
||
|
'parentId': instance.parentId,
|
||
|
'parentCode': instance.parentCode,
|
||
|
'orderCode': instance.orderCode,
|
||
|
'dayFlowCode': instance.dayFlowCode,
|
||
|
'orderStatus': instance.orderStatus,
|
||
|
'sendStatus': instance.sendStatus,
|
||
|
'payStatus': instance.payStatus,
|
||
|
'memberAccount': instance.memberAccount,
|
||
|
'logisticsId': instance.logisticsId,
|
||
|
'shipperCode': instance.shipperCode,
|
||
|
'logisticsName': instance.logisticsName,
|
||
|
'logisticsNum': instance.logisticsNum,
|
||
|
'logisticsCase': instance.logisticsCase,
|
||
|
'refundStatus': instance.refundStatus,
|
||
|
'addressExt': instance.addressExt?.toJson(),
|
||
|
'postFee': instance.postFee,
|
||
|
'orderSum': instance.orderSum,
|
||
|
'paySum': instance.paySum,
|
||
|
'paySumSub': instance.paySumSub,
|
||
|
'accountPay': instance.accountPay,
|
||
|
'couponSubPrice': instance.couponSubPrice,
|
||
|
'customPrice': instance.customPrice,
|
||
|
'removeDecimal': instance.removeDecimal,
|
||
|
'isSubscribe': instance.isSubscribe,
|
||
|
'subcribeTime': instance.subcribeTime,
|
||
|
'sendTime': instance.sendTime,
|
||
|
'confirmTime': instance.confirmTime,
|
||
|
'returnMoneyTime': instance.returnMoneyTime,
|
||
|
'notes': instance.notes,
|
||
|
'prepayId': instance.prepayId,
|
||
|
'payTime': instance.payTime,
|
||
|
'payChannel': instance.payChannel,
|
||
|
'payNum': instance.payNum,
|
||
|
'promotionId': instance.promotionId,
|
||
|
'couponId': instance.couponId,
|
||
|
'isDelete': instance.isDelete,
|
||
|
'isTakeOut': instance.isTakeOut,
|
||
|
'batch': instance.batch,
|
||
|
'orderDiscountPrice': instance.orderDiscountPrice,
|
||
|
'dishesDiscountPrice': instance.dishesDiscountPrice,
|
||
|
'orderPercentPrice': instance.orderPercentPrice,
|
||
|
'finalPayPrice': instance.finalPayPrice,
|
||
|
'activityNoPrice': instance.activityNoPrice,
|
||
|
'activityDiscountPrice': instance.activityDiscountPrice,
|
||
|
'benefitDiscountAmount': instance.benefitDiscountAmount,
|
||
|
'totalDiscountPrice': instance.totalDiscountPrice,
|
||
|
'totalPackagingFee': instance.totalPackagingFee,
|
||
|
'vipDiscountPrice': instance.vipDiscountPrice,
|
||
|
'orderSource': instance.orderSource,
|
||
|
'orderType': instance.orderType,
|
||
|
'storeVO': instance.storeVO?.toJson(),
|
||
|
'orderDetail': instance.orderDetail?.toJson(),
|
||
|
'productList': instance.productList?.map((e) => e.toJson()).toList(),
|
||
|
};
|
||
|
|
||
|
AddressExt _$AddressExtFromJson(Map<String, dynamic> json) => AddressExt()
|
||
|
..addressId = json['addressId']
|
||
|
..country = json['country']
|
||
|
..countryId = json['countryId']
|
||
|
..province = json['province'] as String?
|
||
|
..provinceId = json['provinceId']
|
||
|
..city = json['city'] as String?
|
||
|
..cityId = json['cityId']
|
||
|
..district = json['district'] as String?
|
||
|
..districtId = json['districtId']
|
||
|
..address = json['address'] as String?
|
||
|
..recName = json['recName']
|
||
|
..recMobile = json['recMobile']
|
||
|
..longitude = json['longitude'] as String?
|
||
|
..latitude = json['latitude'] as String?;
|
||
|
|
||
|
Map<String, dynamic> _$AddressExtToJson(AddressExt instance) =>
|
||
|
<String, dynamic>{
|
||
|
'addressId': instance.addressId,
|
||
|
'country': instance.country,
|
||
|
'countryId': instance.countryId,
|
||
|
'province': instance.province,
|
||
|
'provinceId': instance.provinceId,
|
||
|
'city': instance.city,
|
||
|
'cityId': instance.cityId,
|
||
|
'district': instance.district,
|
||
|
'districtId': instance.districtId,
|
||
|
'address': instance.address,
|
||
|
'recName': instance.recName,
|
||
|
'recMobile': instance.recMobile,
|
||
|
'longitude': instance.longitude,
|
||
|
'latitude': instance.latitude,
|
||
|
};
|
||
|
|
||
|
StoreVO _$StoreVOFromJson(Map<String, dynamic> json) => StoreVO()
|
||
|
..id = json['id'] as String?
|
||
|
..storeName = json['storeName'] as String?
|
||
|
..nickName = json['nickName'] as String?
|
||
|
..businessService = json['businessService'] as String?
|
||
|
..businessType = json['businessType'] as String?
|
||
|
..logo = json['logo'] as String?
|
||
|
..openStartTime = json['openStartTime'] as String?
|
||
|
..openEndTime = json['openEndTime'] as String?
|
||
|
..shipAddress = json['shipAddress'] as String?
|
||
|
..remark = json['remark']
|
||
|
..mobile = json['mobile'] as String?
|
||
|
..refundAddress = json['refundAddress']
|
||
|
..refundTel = json['refundTel']
|
||
|
..refundContact = json['refundContact']
|
||
|
..isAutoSendRefundAddress = (json['isAutoSendRefundAddress'] as num?)?.toInt()
|
||
|
..soldNum = json['soldNum']
|
||
|
..storeTemplateConfig = json['storeTemplateConfig']
|
||
|
..storeTable = json['storeTable']
|
||
|
..threshold = json['threshold']
|
||
|
..freePostAge = json['freePostAge']
|
||
|
..logisticsThreshold = json['logisticsThreshold']
|
||
|
..logisticsFreePostAge = json['logisticsFreePostAge']
|
||
|
..longitude = json['longitude'] as String?
|
||
|
..latitude = json['latitude'] as String?
|
||
|
..deliveryDistance = json['deliveryDistance']
|
||
|
..couponVO = json['couponVO']
|
||
|
..posType = json['posType'] == null
|
||
|
? null
|
||
|
: StoreVOPosType.fromJson(json['posType'] as Map<String, dynamic>)
|
||
|
..banners = json['banners']
|
||
|
..tips = json['tips']
|
||
|
..storeBrandImg = json['storeBrandImg']
|
||
|
..defaultPostAge = json['defaultPostAge'];
|
||
|
|
||
|
Map<String, dynamic> _$StoreVOToJson(StoreVO instance) => <String, dynamic>{
|
||
|
'id': instance.id,
|
||
|
'storeName': instance.storeName,
|
||
|
'nickName': instance.nickName,
|
||
|
'businessService': instance.businessService,
|
||
|
'businessType': instance.businessType,
|
||
|
'logo': instance.logo,
|
||
|
'openStartTime': instance.openStartTime,
|
||
|
'openEndTime': instance.openEndTime,
|
||
|
'shipAddress': instance.shipAddress,
|
||
|
'remark': instance.remark,
|
||
|
'mobile': instance.mobile,
|
||
|
'refundAddress': instance.refundAddress,
|
||
|
'refundTel': instance.refundTel,
|
||
|
'refundContact': instance.refundContact,
|
||
|
'isAutoSendRefundAddress': instance.isAutoSendRefundAddress,
|
||
|
'soldNum': instance.soldNum,
|
||
|
'storeTemplateConfig': instance.storeTemplateConfig,
|
||
|
'storeTable': instance.storeTable,
|
||
|
'threshold': instance.threshold,
|
||
|
'freePostAge': instance.freePostAge,
|
||
|
'logisticsThreshold': instance.logisticsThreshold,
|
||
|
'logisticsFreePostAge': instance.logisticsFreePostAge,
|
||
|
'longitude': instance.longitude,
|
||
|
'latitude': instance.latitude,
|
||
|
'deliveryDistance': instance.deliveryDistance,
|
||
|
'couponVO': instance.couponVO,
|
||
|
'posType': instance.posType?.toJson(),
|
||
|
'banners': instance.banners,
|
||
|
'tips': instance.tips,
|
||
|
'storeBrandImg': instance.storeBrandImg,
|
||
|
'defaultPostAge': instance.defaultPostAge,
|
||
|
};
|
||
|
|
||
|
StoreVOPosType _$StoreVOPosTypeFromJson(Map<String, dynamic> json) =>
|
||
|
StoreVOPosType()
|
||
|
..desc = json['desc'] as String?
|
||
|
..code = json['code'] as String?;
|
||
|
|
||
|
Map<String, dynamic> _$StoreVOPosTypeToJson(StoreVOPosType instance) =>
|
||
|
<String, dynamic>{
|
||
|
'desc': instance.desc,
|
||
|
'code': instance.code,
|
||
|
};
|
||
|
|
||
|
OrderDetail _$OrderDetailFromJson(Map<String, dynamic> json) => OrderDetail()
|
||
|
..orderProductList = (json['orderProductList'] as List<dynamic>?)
|
||
|
?.map((e) => OrderProductVO.fromJson(e as Map<String, dynamic>))
|
||
|
.toList()
|
||
|
..discountName = json['discountName']
|
||
|
..discountMoney = json['discountMoney']
|
||
|
..discountNumber = json['discountNumber']
|
||
|
..activityName = json['activityName']
|
||
|
..couponDTO = json['couponDTO']
|
||
|
..orderSumPrice = json['orderSumPrice'] as String?
|
||
|
..paySumPrice = json['paySumPrice'] as String?
|
||
|
..activityNoPrice = json['activityNoPrice'] as String?
|
||
|
..activityPrice = json['activityPrice'] as String?
|
||
|
..dishesList = json['dishesList'] as List<dynamic>?
|
||
|
..customPrice = json['customPrice'] as String?
|
||
|
..nextPerson = json['nextPerson'] as String?
|
||
|
..isTakeOut = (json['isTakeOut'] as num?)?.toInt()
|
||
|
..memberRec = json['memberRec']
|
||
|
..isSubscribe = json['isSubscribe']
|
||
|
..subcribeTime = json['subcribeTime']
|
||
|
..postFee = json['postFee'] as String?
|
||
|
..shipperCode = json['shipperCode'] as String?
|
||
|
..logisticsName = json['logisticsName'] as String?
|
||
|
..logisticsNum = json['logisticsNum'] as String?
|
||
|
..promotionName = json['promotionName'] as String?
|
||
|
..orderNum = (json['orderNum'] as num?)?.toInt()
|
||
|
..productNum = (json['productNum'] as num?)?.toInt()
|
||
|
..mins = (json['mins'] as num?)?.toInt()
|
||
|
..predictTime = json['predictTime'];
|
||
|
|
||
|
Map<String, dynamic> _$OrderDetailToJson(OrderDetail instance) =>
|
||
|
<String, dynamic>{
|
||
|
'orderProductList':
|
||
|
instance.orderProductList?.map((e) => e.toJson()).toList(),
|
||
|
'discountName': instance.discountName,
|
||
|
'discountMoney': instance.discountMoney,
|
||
|
'discountNumber': instance.discountNumber,
|
||
|
'activityName': instance.activityName,
|
||
|
'couponDTO': instance.couponDTO,
|
||
|
'orderSumPrice': instance.orderSumPrice,
|
||
|
'paySumPrice': instance.paySumPrice,
|
||
|
'activityNoPrice': instance.activityNoPrice,
|
||
|
'activityPrice': instance.activityPrice,
|
||
|
'dishesList': instance.dishesList,
|
||
|
'customPrice': instance.customPrice,
|
||
|
'nextPerson': instance.nextPerson,
|
||
|
'isTakeOut': instance.isTakeOut,
|
||
|
'memberRec': instance.memberRec,
|
||
|
'isSubscribe': instance.isSubscribe,
|
||
|
'subcribeTime': instance.subcribeTime,
|
||
|
'postFee': instance.postFee,
|
||
|
'shipperCode': instance.shipperCode,
|
||
|
'logisticsName': instance.logisticsName,
|
||
|
'logisticsNum': instance.logisticsNum,
|
||
|
'promotionName': instance.promotionName,
|
||
|
'orderNum': instance.orderNum,
|
||
|
'productNum': instance.productNum,
|
||
|
'mins': instance.mins,
|
||
|
'predictTime': instance.predictTime,
|
||
|
};
|