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.
135 lines
4.0 KiB
135 lines
4.0 KiB
import 'package:huixiang/retrofit/data/order_product_vo.dart'; |
|
|
|
class DownOrder { |
|
DownOrder({ |
|
String id, |
|
String orderCode, |
|
dynamic storeId, |
|
dynamic storeName, |
|
dynamic orderStatus, |
|
dynamic returnType, |
|
dynamic shipperCode, |
|
dynamic logisticsNum, |
|
String orderSum, |
|
dynamic accountPay, |
|
dynamic discountAmount, |
|
dynamic postFee, |
|
dynamic paySum, |
|
dynamic overTime, |
|
List<OrderProductVOList> orderProductVOList, |
|
dynamic moneyReturnList, |
|
dynamic goodsReturnList, |
|
dynamic tablePrice, |
|
dynamic parentCode, |
|
String parentId, |
|
dynamic peopleNum, |
|
int orderSource, |
|
}) { |
|
this.id = id; |
|
this.orderCode = orderCode; |
|
this.storeId = storeId; |
|
this.storeName = storeName; |
|
this.orderStatus = orderStatus; |
|
this.returnType = returnType; |
|
this.shipperCode = shipperCode; |
|
this.logisticsNum = logisticsNum; |
|
this.orderSum = orderSum; |
|
this.accountPay = accountPay; |
|
this.discountAmount = discountAmount; |
|
this.postFee = postFee; |
|
this.paySum = paySum; |
|
this.overTime = overTime; |
|
this.orderProductVOList = orderProductVOList; |
|
this.moneyReturnList = moneyReturnList; |
|
this.goodsReturnList = goodsReturnList; |
|
this.tablePrice = tablePrice; |
|
this.parentCode = parentCode; |
|
this.parentId = parentId; |
|
this.peopleNum = peopleNum; |
|
this.orderSource = orderSource; |
|
} |
|
|
|
DownOrder.fromJson(dynamic json) { |
|
this.id = json['id']; |
|
this.orderCode = json['orderCode']; |
|
this.storeId = json['storeId']; |
|
this.storeName = json['storeName']; |
|
this.orderStatus = json['orderStatus']; |
|
this.returnType = json['returnType']; |
|
this.shipperCode = json['shipperCode']; |
|
this.logisticsNum = json['logisticsNum']; |
|
this.orderSum = json['orderSum']; |
|
this.accountPay = json['accountPay']; |
|
this.discountAmount = json['discountAmount']; |
|
this.postFee = json['postFee']; |
|
this.paySum = json['paySum']; |
|
this.overTime = json['overTime']; |
|
if (json['orderProductVOList'] != null) { |
|
this.orderProductVOList = []; |
|
json['orderProductVOList'].forEach((v) { |
|
this.orderProductVOList.add(OrderProductVOList.fromJson(v)); |
|
}); |
|
} |
|
this.moneyReturnList = json['moneyReturnList']; |
|
this.goodsReturnList = json['goodsReturnList']; |
|
this.tablePrice = json['tablePrice']; |
|
this.parentCode = json['parentCode']; |
|
this.parentId = json['parentId']; |
|
this.peopleNum = json['peopleNum']; |
|
this.orderSource = json['orderSource']; |
|
} |
|
|
|
String id; |
|
String orderCode; |
|
dynamic storeId; |
|
dynamic storeName; |
|
dynamic orderStatus; |
|
dynamic returnType; |
|
dynamic shipperCode; |
|
dynamic logisticsNum; |
|
String orderSum; |
|
dynamic accountPay; |
|
dynamic discountAmount; |
|
dynamic postFee; |
|
dynamic paySum; |
|
dynamic overTime; |
|
List<OrderProductVOList> orderProductVOList; |
|
dynamic moneyReturnList; |
|
dynamic goodsReturnList; |
|
dynamic tablePrice; |
|
dynamic parentCode; |
|
String parentId; |
|
dynamic peopleNum; |
|
int orderSource; |
|
|
|
Map<String, dynamic> toJson() { |
|
final map = <String, dynamic>{}; |
|
map['id'] = this.id; |
|
map['orderCode'] = this.orderCode; |
|
map['storeId'] = this.storeId; |
|
map['storeName'] = this.storeName; |
|
map['orderStatus'] = this.orderStatus; |
|
map['returnType'] = this.returnType; |
|
map['shipperCode'] = this.shipperCode; |
|
map['logisticsNum'] = this.logisticsNum; |
|
map['orderSum'] = this.orderSum; |
|
map['accountPay'] = this.accountPay; |
|
map['discountAmount'] = this.discountAmount; |
|
map['postFee'] = this.postFee; |
|
map['paySum'] = this.paySum; |
|
map['overTime'] = this.overTime; |
|
if (this.orderProductVOList != null) { |
|
map['orderProductVOList'] = |
|
this.orderProductVOList.map((v) => v.toJson()).toList(); |
|
} |
|
map['moneyReturnList'] = this.moneyReturnList; |
|
map['goodsReturnList'] = this.goodsReturnList; |
|
map['tablePrice'] = this.tablePrice; |
|
map['parentCode'] = this.parentCode; |
|
map['parentId'] = this.parentId; |
|
map['peopleNum'] = this.peopleNum; |
|
map['orderSource'] = this.orderSource; |
|
return map; |
|
} |
|
} |
|
|
|
|