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.

69 lines
2.1 KiB

class ExchangeOrderGoods {
ExchangeOrderGoods();
4 years ago
String id;
String createTime;
String createUser;
String updateTime;
String updateUser;
String orderId;
String goodsId;
String categoryId;
String name;
String description;
String worth;
String price;
String couponId;
bool canPick;
bool canDelivery;
String goodsMainImg;
String goodsViceImg;
int goodsNumber;
int isDelete;
factory ExchangeOrderGoods.fromJson(Map<String, dynamic> json) =>
4 years ago
ExchangeOrderGoods()
..id = json['id'] as String
..createTime = json['createTime'] as String
..createUser = json['createUser'] as String
..updateTime = json['updateTime'] as String
..updateUser = json['updateUser'] as String
..orderId = json['orderId'] as String
..goodsId = json['goodsId'] as String
..categoryId = json['categoryId'] as String
..name = json['name'] as String
..description = json['description'] as String
..worth = json['worth'] as String
..price = json['price'] as String
..couponId = json['couponId'] as String
..canPick = json['canPick'] as bool
..canDelivery = json['canDelivery'] as bool
..goodsMainImg = json['goodsMainImg'] as String
..goodsViceImg = json['goodsViceImg'] as String
..goodsNumber = json['goodsNumber'] as int
..isDelete = json['isDelete'] as int;
4 years ago
Map<String, dynamic> toJson() => <String, dynamic>{
'id': this.id,
'createTime': this.createTime,
'createUser': this.createUser,
'updateTime': this.updateTime,
'updateUser': this.updateUser,
'orderId': this.orderId,
'goodsId': this.goodsId,
'categoryId': this.categoryId,
'name': this.name,
'description': this.description,
'worth': this.worth,
'price': this.price,
'couponId': this.couponId,
'canPick': this.canPick,
'canDelivery': this.canDelivery,
'goodsMainImg': this.goodsMainImg,
'goodsViceImg': this.goodsViceImg,
'goodsNumber': this.goodsNumber,
'isDelete': this.isDelete,
};
}