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.
 
 
 
 
 
 

71 lines
1.6 KiB

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>? orderProductVOList = [];
int? payChannel = 0;
PromotionInfoDTO? promotionInfoDTO;
Settlement();
factory Settlement.fromJson(Map<String, dynamic> json) => _$SettlementFromJson(json);
Map<String, dynamic> 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<String, dynamic> json) => _$OrderProductVOListFromJson(json);
Map<String, dynamic> toJson() => _$OrderProductVOListToJson(this);
}
@JsonSerializable(explicitToJson: true)
class PromotionInfoDTO {
int? couponId = 0;
int? promotionId = 0;
PromotionInfoDTO();
factory PromotionInfoDTO.fromJson(Map<String, dynamic> json) => _$PromotionInfoDTOFromJson(json);
Map<String, dynamic> toJson() => _$PromotionInfoDTOToJson(this);
}