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.
91 lines
3.6 KiB
91 lines
3.6 KiB
// GENERATED CODE - DO NOT MODIFY BY HAND |
|
|
|
part of 'place_order_first.dart'; |
|
|
|
// ************************************************************************** |
|
// JsonSerializableGenerator |
|
// ************************************************************************** |
|
|
|
PlaceOrderFirst _$PlaceOrderFirstFromJson(Map<String, dynamic> json) => |
|
PlaceOrderFirst( |
|
cartNum: (json['cartNum'] as num?)?.toInt(), |
|
cartSum: json['cartSum'], |
|
addressId: json['addressId'], |
|
isSubscribe: json['isSubscribe'] as bool?, |
|
isTakeOut: (json['isTakeOut'] as num?)?.toInt(), |
|
notes: json['notes'], |
|
id: json['id'], |
|
numberOfPeople: json['numberOfPeople'], |
|
orderSource: (json['orderSource'] as num?)?.toInt(), |
|
orderType: json['orderType'], |
|
orderTypeId: (json['orderTypeId'] as num?)?.toInt(), |
|
parentCode: json['parentCode'], |
|
parentId: json['parentId'], |
|
payChannel: (json['payChannel'] as num?)?.toInt(), |
|
promotionInfoDTO: json['promotionInfoDTO'] == null |
|
? null |
|
: PromotionInfoDTOBean.fromJson( |
|
json['promotionInfoDTO'] as Map<String, dynamic>), |
|
recMobile: json['recMobile'] as String?, |
|
orderProductVOList: (json['orderProductVOList'] as List<dynamic>?) |
|
?.map((e) => OrderProductVO.fromJson(e as Map<String, dynamic>)) |
|
.toList(), |
|
shoppingCartSkuItemList: |
|
(json['shoppingCartSkuItemList'] as List<dynamic>?) |
|
?.map((e) => OrderProductVO.fromJson(e as Map<String, dynamic>)) |
|
.toList(), |
|
skuItemDTOList: json['skuItemDTOList'] as List<dynamic>?, |
|
source: (json['source'] as num?)?.toInt(), |
|
storeId: json['storeId'] as String?, |
|
subcribeTime: json['subcribeTime'] as String?, |
|
tableId: json['tableId'] as String?, |
|
); |
|
|
|
Map<String, dynamic> _$PlaceOrderFirstToJson(PlaceOrderFirst instance) => |
|
<String, dynamic>{ |
|
'cartNum': instance.cartNum, |
|
'cartSum': instance.cartSum, |
|
'addressId': instance.addressId, |
|
'isSubscribe': instance.isSubscribe, |
|
'isTakeOut': instance.isTakeOut, |
|
'notes': instance.notes, |
|
'id': instance.id, |
|
'numberOfPeople': instance.numberOfPeople, |
|
'orderSource': instance.orderSource, |
|
'orderType': instance.orderType, |
|
'orderTypeId': instance.orderTypeId, |
|
'parentCode': instance.parentCode, |
|
'parentId': instance.parentId, |
|
'payChannel': instance.payChannel, |
|
'promotionInfoDTO': instance.promotionInfoDTO?.toJson(), |
|
'recMobile': instance.recMobile, |
|
'orderProductVOList': |
|
instance.orderProductVOList?.map((e) => e.toJson()).toList(), |
|
'shoppingCartSkuItemList': |
|
instance.shoppingCartSkuItemList?.map((e) => e.toJson()).toList(), |
|
'skuItemDTOList': instance.skuItemDTOList, |
|
'source': instance.source, |
|
'storeId': instance.storeId, |
|
'subcribeTime': instance.subcribeTime, |
|
'tableId': instance.tableId, |
|
}; |
|
|
|
PromotionInfoDTOBean _$PromotionInfoDTOBeanFromJson( |
|
Map<String, dynamic> json) => |
|
PromotionInfoDTOBean( |
|
couponId: json['couponId'] as String?, |
|
promotionId: json['promotionId'] as String?, |
|
useVipPrice: json['useVipPrice'] as bool?, |
|
useBenefit: json['useBenefit'] as bool?, |
|
discountType: json['discountType'] as String?, |
|
); |
|
|
|
Map<String, dynamic> _$PromotionInfoDTOBeanToJson( |
|
PromotionInfoDTOBean instance) => |
|
<String, dynamic>{ |
|
'couponId': instance.couponId, |
|
'promotionId': instance.promotionId, |
|
'useVipPrice': instance.useVipPrice, |
|
'useBenefit': instance.useBenefit, |
|
'discountType': instance.discountType, |
|
};
|
|
|