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.
81 lines
1.9 KiB
81 lines
1.9 KiB
import 'package:huixiang/data/act_info.dart'; |
|
import 'package:huixiang/data/additional_comment.dart'; |
|
import 'package:huixiang/data/comment.dart'; |
|
import 'package:huixiang/generated/json/base/json_field.dart'; |
|
import 'package:huixiang/generated/json/settlement.g.dart'; |
|
import 'dart:convert'; |
|
export 'package:huixiang/generated/json/settlement.g.dart'; |
|
|
|
@JsonSerializable() |
|
class Settlement { |
|
int? addressId = 0; |
|
int? buyNum = 0; |
|
int? id = 0; |
|
@JSONField(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); |
|
|
|
@override |
|
String toString() { |
|
return jsonEncode(this); |
|
} |
|
} |
|
|
|
@JsonSerializable() |
|
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); |
|
|
|
@override |
|
String toString() { |
|
return jsonEncode(this); |
|
} |
|
} |
|
|
|
|
|
|
|
@JsonSerializable() |
|
class PromotionInfoDTO { |
|
int? couponId = 0; |
|
int? promotionId = 0; |
|
|
|
PromotionInfoDTO(); |
|
|
|
factory PromotionInfoDTO.fromJson(Map<String, dynamic> json) => $PromotionInfoDTOFromJson(json); |
|
|
|
Map<String, dynamic> toJson() => $PromotionInfoDTOToJson(this); |
|
|
|
@override |
|
String toString() { |
|
return jsonEncode(this); |
|
} |
|
} |