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.
141 lines
3.7 KiB
141 lines
3.7 KiB
class LiveResumeModel {
|
|
int liveItemId;
|
|
String pushUrl;
|
|
String groupId;
|
|
String nickname;
|
|
String headImgUrl;
|
|
int userId;
|
|
int praise;
|
|
List<GoodsLists> goodsLists;
|
|
|
|
LiveResumeModel(
|
|
{this.liveItemId,
|
|
this.pushUrl,
|
|
this.groupId,
|
|
this.nickname,
|
|
this.headImgUrl,
|
|
this.userId,
|
|
this.praise,
|
|
this.goodsLists});
|
|
|
|
LiveResumeModel.fromJson(Map<String, dynamic> json) {
|
|
liveItemId = json['liveItemId'];
|
|
pushUrl = json['pushUrl'];
|
|
groupId = json['groupId'];
|
|
nickname = json['nickname'];
|
|
headImgUrl = json['headImgUrl'];
|
|
userId = json['userId'];
|
|
praise = json['praise'];
|
|
if (json['goodsLists'] != null) {
|
|
goodsLists = new List<GoodsLists>();
|
|
json['goodsLists'].forEach((v) {
|
|
goodsLists.add(new GoodsLists.fromJson(v));
|
|
});
|
|
}
|
|
}
|
|
|
|
Map<String, dynamic> toJson() {
|
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
|
data['liveItemId'] = this.liveItemId;
|
|
data['pushUrl'] = this.pushUrl;
|
|
data['groupId'] = this.groupId;
|
|
data['nickname'] = this.nickname;
|
|
data['headImgUrl'] = this.headImgUrl;
|
|
data['userId'] = this.userId;
|
|
data['praise'] = this.praise;
|
|
if (this.goodsLists != null) {
|
|
data['goodsLists'] = this.goodsLists.map((v) => v.toJson()).toList();
|
|
}
|
|
return data;
|
|
}
|
|
}
|
|
|
|
class GoodsLists {
|
|
int id;
|
|
String goodsName;
|
|
String brandImg;
|
|
String brandName;
|
|
int brandId;
|
|
String description;
|
|
int inventory;
|
|
int salesVolume;
|
|
String mainPhotoUrl;
|
|
String promotionName;
|
|
String originalPrice;
|
|
String discountPrice;
|
|
String commission;
|
|
List<String> tags;
|
|
int percent;
|
|
String startTime;
|
|
String endTime;
|
|
String coupon;
|
|
int isExplain;
|
|
|
|
GoodsLists(
|
|
{this.id,
|
|
this.goodsName,
|
|
this.brandImg,
|
|
this.brandName,
|
|
this.brandId,
|
|
this.description,
|
|
this.inventory,
|
|
this.salesVolume,
|
|
this.mainPhotoUrl,
|
|
this.promotionName,
|
|
this.originalPrice,
|
|
this.discountPrice,
|
|
this.commission,
|
|
this.tags,
|
|
this.percent,
|
|
this.startTime,
|
|
this.endTime,
|
|
this.coupon,
|
|
this.isExplain});
|
|
|
|
GoodsLists.fromJson(Map<String, dynamic> json) {
|
|
id = json['id'];
|
|
goodsName = json['goodsName'];
|
|
brandImg = json['brandImg'];
|
|
brandName = json['brandName'];
|
|
brandId = json['brandId'];
|
|
description = json['description'];
|
|
inventory = json['inventory'];
|
|
salesVolume = json['salesVolume'];
|
|
mainPhotoUrl = json['mainPhotoUrl'];
|
|
promotionName = json['promotionName'];
|
|
originalPrice = json['originalPrice'];
|
|
discountPrice = json['discountPrice'];
|
|
commission = json['commission'];
|
|
tags = json['tags'].cast<String>();
|
|
percent = json['percent'];
|
|
startTime = json['startTime'];
|
|
endTime = json['endTime'];
|
|
coupon = json['coupon'];
|
|
isExplain = json['isExplain'];
|
|
}
|
|
|
|
Map<String, dynamic> toJson() {
|
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
|
data['id'] = this.id;
|
|
data['goodsName'] = this.goodsName;
|
|
data['brandImg'] = this.brandImg;
|
|
data['brandName'] = this.brandName;
|
|
data['brandId'] = this.brandId;
|
|
data['description'] = this.description;
|
|
data['inventory'] = this.inventory;
|
|
data['salesVolume'] = this.salesVolume;
|
|
data['mainPhotoUrl'] = this.mainPhotoUrl;
|
|
data['promotionName'] = this.promotionName;
|
|
data['originalPrice'] = this.originalPrice;
|
|
data['discountPrice'] = this.discountPrice;
|
|
data['commission'] = this.commission;
|
|
data['tags'] = this.tags;
|
|
data['percent'] = this.percent;
|
|
data['startTime'] = this.startTime;
|
|
data['endTime'] = this.endTime;
|
|
data['coupon'] = this.coupon;
|
|
data['isExplain'] = this.isExplain;
|
|
return data;
|
|
}
|
|
}
|