import 'package:huixiang/data/order_product_vo.dart'; import 'package:json_annotation/json_annotation.dart'; part 'place_order_first.g.dart'; @JsonSerializable(explicitToJson: true) class PlaceOrderFirst { int? cartNum; dynamic cartSum; dynamic addressId; bool? isSubscribe; int? isTakeOut; dynamic notes; dynamic id; dynamic numberOfPeople; int? orderSource; dynamic orderType; int? orderTypeId; dynamic parentCode; dynamic parentId; int? payChannel; PromotionInfoDTOBean? promotionInfoDTO; String? recMobile; List? orderProductVOList; List? shoppingCartSkuItemList; List? skuItemDTOList; int? source; String? storeId; String? subcribeTime; String? tableId; PlaceOrderFirst( { this.cartNum, this.cartSum, this.addressId, this.isSubscribe, this.isTakeOut, this.notes, this.id, this.numberOfPeople, this.orderSource, this.orderType, this.orderTypeId, this.parentCode, this.parentId, this.payChannel, this.promotionInfoDTO, this.recMobile, this.orderProductVOList, this.shoppingCartSkuItemList, this.skuItemDTOList, this.source, this.storeId, this.subcribeTime, this.tableId}); factory PlaceOrderFirst.fromJson(Map json) => _$PlaceOrderFirstFromJson(json); Map toJson() => _$PlaceOrderFirstToJson(this); } @JsonSerializable(explicitToJson: true) class PromotionInfoDTOBean { String? couponId; String? promotionId; bool? useVipPrice; bool? useBenefit; String? discountType; PromotionInfoDTOBean({this.couponId, this.promotionId,this.useVipPrice,this.useBenefit,this.discountType}); factory PromotionInfoDTOBean.fromJson(Map json) => _$PromotionInfoDTOBeanFromJson(json); Map toJson() => _$PromotionInfoDTOBeanToJson(this); }