// GENERATED CODE - DO NOT MODIFY BY HAND part of 'place_order_first.dart'; // ************************************************************************** // JsonSerializableGenerator // ************************************************************************** PlaceOrderFirst _$PlaceOrderFirstFromJson(Map 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), recMobile: json['recMobile'] as String?, orderProductVOList: (json['orderProductVOList'] as List?) ?.map((e) => OrderProductVO.fromJson(e as Map)) .toList(), shoppingCartSkuItemList: (json['shoppingCartSkuItemList'] as List?) ?.map((e) => OrderProductVO.fromJson(e as Map)) .toList(), skuItemDTOList: json['skuItemDTOList'] as List?, source: (json['source'] as num?)?.toInt(), storeId: json['storeId'] as String?, subcribeTime: json['subcribeTime'] as String?, tableId: json['tableId'] as String?, ); Map _$PlaceOrderFirstToJson(PlaceOrderFirst instance) => { '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 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 _$PromotionInfoDTOBeanToJson( PromotionInfoDTOBean instance) => { 'couponId': instance.couponId, 'promotionId': instance.promotionId, 'useVipPrice': instance.useVipPrice, 'useBenefit': instance.useBenefit, 'discountType': instance.discountType, };