// GENERATED CODE - DO NOT MODIFY BY HAND part of 'settlement.dart'; // ************************************************************************** // JsonSerializableGenerator // ************************************************************************** Settlement _$SettlementFromJson(Map 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?) ?.map((e) => OrderProductVOList.fromJson(e as Map)) .toList() ..payChannel = (json['payChannel'] as num?)?.toInt() ..promotionInfoDTO = json['promotionInfoDTO'] == null ? null : PromotionInfoDTO.fromJson( json['promotionInfoDTO'] as Map); Map _$SettlementToJson(Settlement instance) => { '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 json) => OrderProductVOList() ..actInfo = json['actInfo'] == null ? null : ActInfo.fromJson(json['actInfo'] as Map) ..additionalComment = json['additionalComment'] == null ? null : AdditionalComment.fromJson( json['additionalComment'] as Map) ..buyNum = (json['buyNum'] as num?)?.toInt() ..canApplyIntervention = (json['canApplyIntervention'] as num?)?.toInt() ..comment = json['comment'] == null ? null : Comment.fromJson(json['comment'] as Map) ..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 _$OrderProductVOListToJson(OrderProductVOList instance) => { '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 json) => PromotionInfoDTO() ..couponId = (json['couponId'] as num?)?.toInt() ..promotionId = (json['promotionId'] as num?)?.toInt(); Map _$PromotionInfoDTOToJson(PromotionInfoDTO instance) => { 'couponId': instance.couponId, 'promotionId': instance.promotionId, };