import 'package:huixiang/data/act_info.dart'; import 'package:huixiang/data/additional_comment.dart'; import 'package:huixiang/data/comment.dart'; import 'package:json_annotation/json_annotation.dart'; part 'settlement.g.dart'; @JsonSerializable(explicitToJson: true) class Settlement { int? addressId = 0; int? buyNum = 0; int? id = 0; @JsonKey(name: "is_logistics") bool? isLogistics = false; List? orderProductVOList = []; int? payChannel = 0; PromotionInfoDTO? promotionInfoDTO; Settlement(); factory Settlement.fromJson(Map json) => _$SettlementFromJson(json); Map toJson() => _$SettlementToJson(this); } @JsonSerializable(explicitToJson: true) class OrderProductVOList { ActInfo? actInfo; AdditionalComment? additionalComment; int? buyNum = 0; int? canApplyIntervention = 0; Comment? comment; int? commentStatus = 0; int? discountAmount = 0; int? id = 0; int? productId = 0; String? productName = ''; String? returnCode = ''; int? returnStatus = 0; int? returnType = 0; int? sellPrice = 0; int? skuId = 0; String? skuImg = ''; String? skuNameStr = ''; OrderProductVOList(); factory OrderProductVOList.fromJson(Map json) => _$OrderProductVOListFromJson(json); Map toJson() => _$OrderProductVOListToJson(this); } @JsonSerializable(explicitToJson: true) class PromotionInfoDTO { int? couponId = 0; int? promotionId = 0; PromotionInfoDTO(); factory PromotionInfoDTO.fromJson(Map json) => _$PromotionInfoDTOFromJson(json); Map toJson() => _$PromotionInfoDTOToJson(this); }