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.
 
 
 
 
 
 

231 lines
10 KiB

// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'settle_order_info.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
SettleOrderInfo _$SettleOrderInfoFromJson(Map<String, dynamic> json) =>
SettleOrderInfo()
..orderNum = (json['orderNum'] as num?)?.toInt()
..productNum = (json['productNum'] as num?)?.toInt()
..mins = (json['mins'] as num?)?.toInt()
..memberVO = json['memberVO'] == null
? null
: MemberVo.fromJson(json['memberVO'] as Map<String, dynamic>)
..postAge = json['postAge'] as String?
..price = json['price'] as String?
..benefitDiscountAmount = json['benefitDiscountAmount'] as String?
..orderSum = json['orderSum'] as String?
..discountAmount = json['discountAmount'] as String?
..promotionInfoList = (json['promotionInfoList'] as List<dynamic>?)
?.map(
(e) => PromotionInfoListBean.fromJson(e as Map<String, dynamic>))
.toList()
..couponList = (json['couponList'] as List<dynamic>?)
?.map((e) => CouponListBean.fromJson(e as Map<String, dynamic>))
.toList()
..threshold = json['threshold'] as String?
..freePostAge = json['freePostAge'] as String?
..orderProductList = (json['orderProductList'] as List<dynamic>?)
?.map((e) => OrderProductVO.fromJson(e as Map<String, dynamic>))
.toList()
..promotionId = json['promotionId'] as String?
..memberCouponId = json['memberCouponId'] as String?
..usePlateMoney = json['usePlateMoney'] as bool?
..isRaise = json['isRaise'] as bool?
..isVipDay = json['isVipDay'] as bool?
..selectDiscount = (json['selectDiscount'] as num?)?.toInt()
..useVipPriceSelect = json['useVipPriceSelect'] as bool?
..vipDiscountAmount = json['vipDiscountAmount'] as String?
..totalDiscountAmount = json['totalDiscountAmount'] as String?
..vipDayDiscountAmount = json['vipDayDiscountAmount'] as String?
..discountType = json['discountType'] as String?
..totalPackagingFee = json['totalPackagingFee'] as String?;
Map<String, dynamic> _$SettleOrderInfoToJson(SettleOrderInfo instance) =>
<String, dynamic>{
'orderNum': instance.orderNum,
'productNum': instance.productNum,
'mins': instance.mins,
'memberVO': instance.memberVO?.toJson(),
'postAge': instance.postAge,
'price': instance.price,
'benefitDiscountAmount': instance.benefitDiscountAmount,
'orderSum': instance.orderSum,
'discountAmount': instance.discountAmount,
'promotionInfoList':
instance.promotionInfoList?.map((e) => e.toJson()).toList(),
'couponList': instance.couponList?.map((e) => e.toJson()).toList(),
'threshold': instance.threshold,
'freePostAge': instance.freePostAge,
'orderProductList':
instance.orderProductList?.map((e) => e.toJson()).toList(),
'promotionId': instance.promotionId,
'memberCouponId': instance.memberCouponId,
'usePlateMoney': instance.usePlateMoney,
'isRaise': instance.isRaise,
'isVipDay': instance.isVipDay,
'selectDiscount': instance.selectDiscount,
'useVipPriceSelect': instance.useVipPriceSelect,
'vipDiscountAmount': instance.vipDiscountAmount,
'totalDiscountAmount': instance.totalDiscountAmount,
'vipDayDiscountAmount': instance.vipDayDiscountAmount,
'discountType': instance.discountType,
'totalPackagingFee': instance.totalPackagingFee,
};
CouponListBean _$CouponListBeanFromJson(Map<String, dynamic> json) =>
CouponListBean()
..id = json['id'] as String?
..storeId = json['storeId'] as String?
..bizType = (json['bizType'] as num?)?.toInt()
..fullAmount = json['fullAmount'] as String?
..discountAmount = json['discountAmount'] as String?
..fullNumber = (json['fullNumber'] as num?)?.toInt()
..discountPercent = (json['discountPercent'] as num?)?.toInt()
..bizId = json['bizId'] as String?
..limitAmount = json['limitAmount'] as String?
..publishStartTime = json['publishStartTime'] as String?
..publishEndTime = json['publishEndTime'] as String?
..useStartTime = json['useStartTime'] as String?
..useEndTime = json['useEndTime'] as String?
..promotionId = json['promotionId'] as String?
..mid = json['mid']
..couponId = json['couponId'] as String?
..receiveTime = json['receiveTime'] as String?
..useTime = json['useTime']
..status = (json['status'] as num?)?.toInt()
..tenantCode = json['tenantCode'] as String?
..type = (json['type'] as num?)?.toInt()
..promotionName = json['promotionName'] as String?
..usable = json['usable'] as bool?
..allProduct = json['allProduct'] as bool?
..isMaxCoupon = json['isMaxCoupon'] as bool?
..productList = json['productList']
..isEx = json['isEx'] as bool?
..usableReason = json['usableReason'] as String?;
Map<String, dynamic> _$CouponListBeanToJson(CouponListBean instance) =>
<String, dynamic>{
'id': instance.id,
'storeId': instance.storeId,
'bizType': instance.bizType,
'fullAmount': instance.fullAmount,
'discountAmount': instance.discountAmount,
'fullNumber': instance.fullNumber,
'discountPercent': instance.discountPercent,
'bizId': instance.bizId,
'limitAmount': instance.limitAmount,
'publishStartTime': instance.publishStartTime,
'publishEndTime': instance.publishEndTime,
'useStartTime': instance.useStartTime,
'useEndTime': instance.useEndTime,
'promotionId': instance.promotionId,
'mid': instance.mid,
'couponId': instance.couponId,
'receiveTime': instance.receiveTime,
'useTime': instance.useTime,
'status': instance.status,
'tenantCode': instance.tenantCode,
'type': instance.type,
'promotionName': instance.promotionName,
'usable': instance.usable,
'allProduct': instance.allProduct,
'isMaxCoupon': instance.isMaxCoupon,
'productList': instance.productList,
'isEx': instance.isEx,
'usableReason': instance.usableReason,
};
PromotionInfoListBean _$PromotionInfoListBeanFromJson(
Map<String, dynamic> json) =>
PromotionInfoListBean()
..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?
..storeId = json['storeId'] as String?
..name = json['name'] as String?
..image = json['image'] as String?
..description = json['description'] as String?
..status = (json['status'] as num?)?.toInt()
..applyStartTime = json['applyStartTime'] as String?
..applyEndTime = json['applyEndTime'] as String?
..activityStartTime = json['activityStartTime'] as String?
..activityEndTime = json['activityEndTime'] as String?
..doStartTime = json['doStartTime']
..doEndTime = json['doEndTime']
..isNeedSecurityDeposit = (json['isNeedSecurityDeposit'] as num?)?.toInt()
..securityDeposit = json['securityDeposit'] as String?
..tag = json['tag'] as String?
..promotionType = (json['promotionType'] as num?)?.toInt()
..promotionPlan = (json['promotionPlan'] as num?)?.toInt()
..promotionDetail = (json['promotionDetail'] as List<dynamic>?)
?.map((e) => PromotionDetailBean.fromJson(e as Map<String, dynamic>))
.toList()
..channels =
(json['channels'] as List<dynamic>?)?.map((e) => e as String).toList()
..isVip = json['isVip'] as bool?
..isDelete = (json['isDelete'] as num?)?.toInt()
..tenantCode = json['tenantCode'] as String?
..canPartake = json['canPartake'] as bool?
..isMaxPromotion = json['isMaxPromotion'] as bool?
..promotionProuctList = json['promotionProuctList'];
Map<String, dynamic> _$PromotionInfoListBeanToJson(
PromotionInfoListBean instance) =>
<String, dynamic>{
'id': instance.id,
'createTime': instance.createTime,
'createUser': instance.createUser,
'updateTime': instance.updateTime,
'updateUser': instance.updateUser,
'storeId': instance.storeId,
'name': instance.name,
'image': instance.image,
'description': instance.description,
'status': instance.status,
'applyStartTime': instance.applyStartTime,
'applyEndTime': instance.applyEndTime,
'activityStartTime': instance.activityStartTime,
'activityEndTime': instance.activityEndTime,
'doStartTime': instance.doStartTime,
'doEndTime': instance.doEndTime,
'isNeedSecurityDeposit': instance.isNeedSecurityDeposit,
'securityDeposit': instance.securityDeposit,
'tag': instance.tag,
'promotionType': instance.promotionType,
'promotionPlan': instance.promotionPlan,
'promotionDetail':
instance.promotionDetail?.map((e) => e.toJson()).toList(),
'channels': instance.channels,
'isVip': instance.isVip,
'isDelete': instance.isDelete,
'tenantCode': instance.tenantCode,
'canPartake': instance.canPartake,
'isMaxPromotion': instance.isMaxPromotion,
'promotionProuctList': instance.promotionProuctList,
};
PromotionDetailBean _$PromotionDetailBeanFromJson(Map<String, dynamic> json) =>
PromotionDetailBean()
..limitTime = json['limitTime'] as String?
..discountRate = json['discountRate'] as String?
..discountAmount = json['discountAmount'] as String?
..fullAmount = json['fullAmount'] as String?
..collageNumber = json['collageNumber'] as String?
..fullNumber = json['fullNumber'] as String?;
Map<String, dynamic> _$PromotionDetailBeanToJson(
PromotionDetailBean instance) =>
<String, dynamic>{
'limitTime': instance.limitTime,
'discountRate': instance.discountRate,
'discountAmount': instance.discountAmount,
'fullAmount': instance.fullAmount,
'collageNumber': instance.collageNumber,
'fullNumber': instance.fullNumber,
};