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.
 
 
 
 
 
 

92 lines
3.8 KiB

// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'settlement.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
Settlement _$SettlementFromJson(Map<String, dynamic> json) => Settlement()
..addressId = (json['addressId'] as num?)?.toInt()
..buyNum = (json['buyNum'] as num?)?.toInt()
..id = (json['id'] as num?)?.toInt()
..isLogistics = json['is_logistics'] as bool?
..orderProductVOList = (json['orderProductVOList'] as List<dynamic>?)
?.map((e) => OrderProductVOList.fromJson(e as Map<String, dynamic>))
.toList()
..payChannel = (json['payChannel'] as num?)?.toInt()
..promotionInfoDTO = json['promotionInfoDTO'] == null
? null
: PromotionInfoDTO.fromJson(
json['promotionInfoDTO'] as Map<String, dynamic>);
Map<String, dynamic> _$SettlementToJson(Settlement instance) =>
<String, dynamic>{
'addressId': instance.addressId,
'buyNum': instance.buyNum,
'id': instance.id,
'is_logistics': instance.isLogistics,
'orderProductVOList':
instance.orderProductVOList?.map((e) => e.toJson()).toList(),
'payChannel': instance.payChannel,
'promotionInfoDTO': instance.promotionInfoDTO?.toJson(),
};
OrderProductVOList _$OrderProductVOListFromJson(Map<String, dynamic> json) =>
OrderProductVOList()
..actInfo = json['actInfo'] == null
? null
: ActInfo.fromJson(json['actInfo'] as Map<String, dynamic>)
..additionalComment = json['additionalComment'] == null
? null
: AdditionalComment.fromJson(
json['additionalComment'] as Map<String, dynamic>)
..buyNum = (json['buyNum'] as num?)?.toInt()
..canApplyIntervention = (json['canApplyIntervention'] as num?)?.toInt()
..comment = json['comment'] == null
? null
: Comment.fromJson(json['comment'] as Map<String, dynamic>)
..commentStatus = (json['commentStatus'] as num?)?.toInt()
..discountAmount = (json['discountAmount'] as num?)?.toInt()
..id = (json['id'] as num?)?.toInt()
..productId = (json['productId'] as num?)?.toInt()
..productName = json['productName'] as String?
..returnCode = json['returnCode'] as String?
..returnStatus = (json['returnStatus'] as num?)?.toInt()
..returnType = (json['returnType'] as num?)?.toInt()
..sellPrice = (json['sellPrice'] as num?)?.toInt()
..skuId = (json['skuId'] as num?)?.toInt()
..skuImg = json['skuImg'] as String?
..skuNameStr = json['skuNameStr'] as String?;
Map<String, dynamic> _$OrderProductVOListToJson(OrderProductVOList instance) =>
<String, dynamic>{
'actInfo': instance.actInfo?.toJson(),
'additionalComment': instance.additionalComment?.toJson(),
'buyNum': instance.buyNum,
'canApplyIntervention': instance.canApplyIntervention,
'comment': instance.comment?.toJson(),
'commentStatus': instance.commentStatus,
'discountAmount': instance.discountAmount,
'id': instance.id,
'productId': instance.productId,
'productName': instance.productName,
'returnCode': instance.returnCode,
'returnStatus': instance.returnStatus,
'returnType': instance.returnType,
'sellPrice': instance.sellPrice,
'skuId': instance.skuId,
'skuImg': instance.skuImg,
'skuNameStr': instance.skuNameStr,
};
PromotionInfoDTO _$PromotionInfoDTOFromJson(Map<String, dynamic> json) =>
PromotionInfoDTO()
..couponId = (json['couponId'] as num?)?.toInt()
..promotionId = (json['promotionId'] as num?)?.toInt();
Map<String, dynamic> _$PromotionInfoDTOToJson(PromotionInfoDTO instance) =>
<String, dynamic>{
'couponId': instance.couponId,
'promotionId': instance.promotionId,
};