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.

740 lines
33 KiB

/// specialArea : [{"img":"https://pos.upload.gznl.top/1179/2021/12/fe209ded-a504-4319-9c8d-6d8478785e78.jpg","id":"1064355492","productList":[{"productImg":"https://pos.upload.gznl.top/1179/2021/12/755b69d6-0047-44fe-9593-edac72fb9982.png","productSkuVOList":[{"productId":"1473532887297949696","isDelete":0,"setMeal":"","updateUser":"1364043181062094848","skuPrice":"25.00","skuStock":0,"weight":0,"updateTime":"2021-12-22 13:56:32","storeId":"1364043181120815104","volume":0,"skuNameStr":"","createTime":"2021-12-22 13:56:32","createUser":"1364043181062094848","id":"1473532888409440256","applyPrice":"0.00","skuAttrList":[{"attrValueId":"1473532887918706688","isDelete":0,"updateUser":"1364043181062094848","updateTime":"2021-12-22 13:56:32","attrId":"1473532887704797184","createTime":"2021-12-22 13:56:32","createUser":"1364043181062094848","id":"1473532888619155456","skuId":"1473532888409440256"}],"skuCode":"P202112221356324"}],"productName":"有机草莓干","posShow":true,"attrList":[{"productId":"1473532887297949696","isDelete":0,"needImg":false,"attrValueList":[{"isDelete":0,"attrId":"1473532887704797184","id":"1473532887918706688","attrValue":"","attrValueImg":""}],"id":"1473532887704797184","attrName":""}],"price":"25.00","sellCount":0,"id":"1473532887297949696","applyPrice":"0.00","stock":0,"status":1},{"productImg":"https://pos.upload.gznl.top/1179/2021/12/c24dbb2c-91b9-47be-85c5-d9f05ffa4d59.png","productSkuVOList":[{"productId":"1473532682649468928","isDelete":0,"setMeal":"","updateUser":"1364043181062094848","skuPrice":"35.00","skuStock":0,"weight":0,"updateTime":"2021-12-22 13:55:44","storeId":"1364043181120815104","volume":0,"skuNameStr":"","createTime":"2021-12-22 13:55:44","createUser":"1364043181062094848","id":"1473532684721455104","applyPrice":"0.00","skuAttrList":[{"attrValueId":"1473532683257643008","isDelete":0,"updateUser":"1364043181062094848","updateTime":"2021-12-22 13:55:44","attrId":"1473532683052122112","createTime":"2021-12-22 13:55:44","createUser":"1364043181062094848","id":"1473532684935364608","skuId":"1473532684721455104"}],"skuCode":"P202112221355432"}],"productName":"有机午餐一顿","posShow":true,"attrList":[{"productId":"1473532682649468928","isDelete":0,"needImg":false,"attrValueList":[{"isDelete":0,"attrId":"1473532683052122112","id":"1473532683257643008","attrValue":"","attrValueImg":""}],"id":"1473532683052122112","attrName":""}],"price":"35.00","sellCount":0,"id":"1473532682649468928","applyPrice":"0.00","stock":0,"status":1}]},{"img":"https://pos.upload.gznl.top/1179/2021/12/24fe72c9-8a2b-4a9d-968f-2037d71a1705.jpg","id":"8828438334","productList":[{"productImg":"https://pos.upload.gznl.top/1179/2021/12/755b69d6-0047-44fe-9593-edac72fb9982.png","productSkuVOList":[{"productId":"1473532887297949696","isDelete":0,"setMeal":"","updateUser":"1364043181062094848","skuPrice":"25.00","skuStock":0,"weight":0,"updateTime":"2021-12-22 13:56:32","storeId":"1364043181120815104","volume":0,"skuNameStr":"","createTime":"2021-12-22 13:56:32","createUser":"1364043181062094848","id":"1473532888409440256","applyPrice":"0.00","skuAttrList":[{"attrValueId":"1473532887918706688","isDelete":0,"updateUser":"1364043181062094848","updateTime":"2021-12-22 13:56:32","attrId":"1473532887704797184","createTime":"2021-12-22 13:56:32","createUser":"1364043181062094848","id":"1473532888619155456","skuId":"1473532888409440256"}],"skuCode":"P202112221356324"}],"productName":"有机草莓干","posShow":true,"attrList":[{"productId":"1473532887297949696","isDelete":0,"needImg":false,"attrValueList":[{"isDelete":0,"attrId":"1473532887704797184","id":"1473532887918706688","attrValue":"","attrValueImg":""}],"id":"1473532887704797184","attrName":""}],"price":"25.00","sellCount":0,"id":"1473532887297949696","applyPrice":"0.00","stock":0,"status":1},{"productImg":"https://pos.upload.gznl.top/1179/2021/12/c24dbb2c-91b9-47be-85c5-d9f05ffa4d59.png","productSkuVOList":[{"productId":"1473532682649468928","isDelete":0,"setMeal":"","updateUser":"1364043181062094848","skuPrice":"35.00","skuStock":0,"weight":0,"updateTime":"202
/// quickEntry : [{"img":"https://pos.upload.gznl.top/1179/2021/12/df9db6ba-4ef8-4962-8ae0-57a7d8140462.png","url":"/router/activity_prefecture_details?type=1","id":"4072162773"},{"img":"https://pos.upload.gznl.top/1179/2021/12/56d86c69-4044-4b08-818f-7cda2ae384d0.png","url":"/router/activity_prefecture_details?type=2","id":"4166165221"},{"img":"https://pos.upload.gznl.top/1179/2021/12/ef7da2a6-d501-424e-bc45-4d9f3f315f36.png","url":"/router/activity_prefecture_d3tails?type=3","id":"2717561527"}]
/// hotSearch : ["好","可以","verygod ","ssad","asda"]
/// categoryGroup : [{"groupList":[{"isDelete":0,"updateUser":"1364043181062094848","updateTime":"2021-12-22 13:50:12","groupImg":"https://pos.upload.gznl.top/1179/2021/12/4ff84bf7-1fca-4034-94e7-1c657917716f.png","sort":1,"storeId":"1364043181120815104","groupName":"回乡水果","createTime":"2021-12-22 13:50:12","kitchenGroup":0,"printerId":"1473531135496552448","createUser":"1364043181062094848","isCharge":0,"id":"1473531295907708928"},{"isDelete":0,"updateUser":"1364043181062094848","updateTime":"2021-12-22 13:51:41","groupImg":"https://pos.upload.gznl.top/1179/2021/12/506f72e7-86b8-4bcb-a55b-b48572675d2f.png","sort":1,"storeId":"1364043181120815104","groupName":"回乡周边","createTime":"2021-12-22 13:51:41","kitchenGroup":0,"printerId":"1473531135496552448","createUser":"1364043181062094848","isCharge":0,"id":"1473531667711787008"},{"isDelete":0,"updateUser":"1364043181062094848","updateTime":"2021-12-22 13:55:04","groupImg":"https://pos.upload.gznl.top/1179/2021/12/9864e0ba-dbb2-4bfd-935e-7fc4c0580760.png","sort":1,"storeId":"1364043181120815104","groupName":"回乡门票","createTime":"2021-12-22 13:55:04","kitchenGroup":0,"printerId":"1473531135496552448","createUser":"1364043181062094848","isCharge":0,"id":"1473532517066735616"}],"groupCommodityName":"22","name":"22"},{"groupList":[],"groupCommodityName":"2244","name":"2244"},{"groupList":[],"groupCommodityName":"224455","name":"224455"},{"groupList":[],"groupCommodityName":"22445566","name":"22445566"}]
class ShoppingHomeConfig {
ShoppingHomeConfig({
List<SpecialArea> specialArea,
List<QuickEntry> quickEntry,
List<String> hotSearch,
List<CategoryGroup> categoryGroup,}){
_specialArea = specialArea;
_quickEntry = quickEntry;
_hotSearch = hotSearch;
_categoryGroup = categoryGroup;
}
ShoppingHomeConfig.fromJson(dynamic json) {
if (json['specialArea'] != null) {
_specialArea = [];
json['specialArea'].forEach((v) {
_specialArea.add(SpecialArea.fromJson(v));
});
}
if (json['quickEntry'] != null) {
_quickEntry = [];
json['quickEntry'].forEach((v) {
_quickEntry.add(QuickEntry.fromJson(v));
});
}
_hotSearch = json['hotSearch'] != null ? json['hotSearch'].cast<String>() : [];
if (json['categoryGroup'] != null) {
_categoryGroup = [];
json['categoryGroup'].forEach((v) {
_categoryGroup.add(CategoryGroup.fromJson(v));
});
}
}
List<SpecialArea> _specialArea;
List<QuickEntry> _quickEntry;
List<String> _hotSearch;
List<CategoryGroup> _categoryGroup;
List<SpecialArea> get specialArea => _specialArea;
List<QuickEntry> get quickEntry => _quickEntry;
List<String> get hotSearch => _hotSearch;
List<CategoryGroup> get categoryGroup => _categoryGroup;
Map<String, dynamic> toJson() {
final map = <String, dynamic>{};
if (_specialArea != null) {
map['specialArea'] = _specialArea.map((v) => v.toJson()).toList();
}
if (_quickEntry != null) {
map['quickEntry'] = _quickEntry.map((v) => v.toJson()).toList();
}
map['hotSearch'] = _hotSearch;
if (_categoryGroup != null) {
map['categoryGroup'] = _categoryGroup.map((v) => v.toJson()).toList();
}
return map;
}
}
/// groupList : [{"isDelete":0,"updateUser":"1364043181062094848","updateTime":"2021-12-22 13:50:12","groupImg":"https://pos.upload.gznl.top/1179/2021/12/4ff84bf7-1fca-4034-94e7-1c657917716f.png","sort":1,"storeId":"1364043181120815104","groupName":"回乡水果","createTime":"2021-12-22 13:50:12","kitchenGroup":0,"printerId":"1473531135496552448","createUser":"1364043181062094848","isCharge":0,"id":"1473531295907708928"},{"isDelete":0,"updateUser":"1364043181062094848","updateTime":"2021-12-22 13:51:41","groupImg":"https://pos.upload.gznl.top/1179/2021/12/506f72e7-86b8-4bcb-a55b-b48572675d2f.png","sort":1,"storeId":"1364043181120815104","groupName":"回乡周边","createTime":"2021-12-22 13:51:41","kitchenGroup":0,"printerId":"1473531135496552448","createUser":"1364043181062094848","isCharge":0,"id":"1473531667711787008"},{"isDelete":0,"updateUser":"1364043181062094848","updateTime":"2021-12-22 13:55:04","groupImg":"https://pos.upload.gznl.top/1179/2021/12/9864e0ba-dbb2-4bfd-935e-7fc4c0580760.png","sort":1,"storeId":"1364043181120815104","groupName":"回乡门票","createTime":"2021-12-22 13:55:04","kitchenGroup":0,"printerId":"1473531135496552448","createUser":"1364043181062094848","isCharge":0,"id":"1473532517066735616"}]
/// groupCommodityName : "22"
/// name : "22"
class CategoryGroup {
CategoryGroup({
List<GroupList> groupList,
String groupCommodityName,
String name,}){
_groupList = groupList;
_groupCommodityName = groupCommodityName;
_name = name;
}
CategoryGroup.fromJson(dynamic json) {
if (json['groupList'] != null) {
_groupList = [];
json['groupList'].forEach((v) {
_groupList.add(GroupList.fromJson(v));
});
}
_groupCommodityName = json['groupCommodityName'];
_name = json['name'];
}
List<GroupList> _groupList;
String _groupCommodityName;
String _name;
List<GroupList> get groupList => _groupList;
String get groupCommodityName => _groupCommodityName;
String get name => _name;
Map<String, dynamic> toJson() {
final map = <String, dynamic>{};
if (_groupList != null) {
map['groupList'] = _groupList.map((v) => v.toJson()).toList();
}
map['groupCommodityName'] = _groupCommodityName;
map['name'] = _name;
return map;
}
}
/// isDelete : 0
/// updateUser : "1364043181062094848"
/// updateTime : "2021-12-22 13:50:12"
/// groupImg : "https://pos.upload.gznl.top/1179/2021/12/4ff84bf7-1fca-4034-94e7-1c657917716f.png"
/// sort : 1
/// storeId : "1364043181120815104"
/// groupName : "回乡水果"
/// createTime : "2021-12-22 13:50:12"
/// kitchenGroup : 0
/// printerId : "1473531135496552448"
/// createUser : "1364043181062094848"
/// isCharge : 0
/// id : "1473531295907708928"
class GroupList {
GroupList({
int isDelete,
String updateUser,
String updateTime,
String groupImg,
int sort,
String storeId,
String groupName,
String createTime,
int kitchenGroup,
String printerId,
String createUser,
int isCharge,
String id,}){
_isDelete = isDelete;
_updateUser = updateUser;
_updateTime = updateTime;
_groupImg = groupImg;
_sort = sort;
_storeId = storeId;
_groupName = groupName;
_createTime = createTime;
_kitchenGroup = kitchenGroup;
_printerId = printerId;
_createUser = createUser;
_isCharge = isCharge;
_id = id;
}
GroupList.fromJson(dynamic json) {
_isDelete = json['isDelete'];
_updateUser = json['updateUser'];
_updateTime = json['updateTime'];
_groupImg = json['groupImg'];
_sort = json['sort'];
_storeId = json['storeId'];
_groupName = json['groupName'];
_createTime = json['createTime'];
_kitchenGroup = json['kitchenGroup'];
_printerId = json['printerId'];
_createUser = json['createUser'];
_isCharge = json['isCharge'];
_id = json['id'];
}
int _isDelete;
String _updateUser;
String _updateTime;
String _groupImg;
int _sort;
String _storeId;
String _groupName;
String _createTime;
int _kitchenGroup;
String _printerId;
String _createUser;
int _isCharge;
String _id;
int get isDelete => _isDelete;
String get updateUser => _updateUser;
String get updateTime => _updateTime;
String get groupImg => _groupImg;
int get sort => _sort;
String get storeId => _storeId;
String get groupName => _groupName;
String get createTime => _createTime;
int get kitchenGroup => _kitchenGroup;
String get printerId => _printerId;
String get createUser => _createUser;
int get isCharge => _isCharge;
String get id => _id;
Map<String, dynamic> toJson() {
final map = <String, dynamic>{};
map['isDelete'] = _isDelete;
map['updateUser'] = _updateUser;
map['updateTime'] = _updateTime;
map['groupImg'] = _groupImg;
map['sort'] = _sort;
map['storeId'] = _storeId;
map['groupName'] = _groupName;
map['createTime'] = _createTime;
map['kitchenGroup'] = _kitchenGroup;
map['printerId'] = _printerId;
map['createUser'] = _createUser;
map['isCharge'] = _isCharge;
map['id'] = _id;
return map;
}
}
/// img : "https://pos.upload.gznl.top/1179/2021/12/df9db6ba-4ef8-4962-8ae0-57a7d8140462.png"
/// url : "/router/activity_prefecture_details?type=1"
/// id : "4072162773"
class QuickEntry {
QuickEntry({
String img,
String url,
String id,}){
_img = img;
_url = url;
_id = id;
}
QuickEntry.fromJson(dynamic json) {
_img = json['img'];
_url = json['url'];
_id = json['id'];
}
String _img;
String _url;
String _id;
String get img => _img;
String get url => _url;
String get id => _id;
Map<String, dynamic> toJson() {
final map = <String, dynamic>{};
map['img'] = _img;
map['url'] = _url;
map['id'] = _id;
return map;
}
}
/// img : "https://pos.upload.gznl.top/1179/2021/12/fe209ded-a504-4319-9c8d-6d8478785e78.jpg"
/// id : "1064355492"
/// productList : [{"productImg":"https://pos.upload.gznl.top/1179/2021/12/755b69d6-0047-44fe-9593-edac72fb9982.png","productSkuVOList":[{"productId":"1473532887297949696","isDelete":0,"setMeal":"","updateUser":"1364043181062094848","skuPrice":"25.00","skuStock":0,"weight":0,"updateTime":"2021-12-22 13:56:32","storeId":"1364043181120815104","volume":0,"skuNameStr":"","createTime":"2021-12-22 13:56:32","createUser":"1364043181062094848","id":"1473532888409440256","applyPrice":"0.00","skuAttrList":[{"attrValueId":"1473532887918706688","isDelete":0,"updateUser":"1364043181062094848","updateTime":"2021-12-22 13:56:32","attrId":"1473532887704797184","createTime":"2021-12-22 13:56:32","createUser":"1364043181062094848","id":"1473532888619155456","skuId":"1473532888409440256"}],"skuCode":"P202112221356324"}],"productName":"有机草莓干","posShow":true,"attrList":[{"productId":"1473532887297949696","isDelete":0,"needImg":false,"attrValueList":[{"isDelete":0,"attrId":"1473532887704797184","id":"1473532887918706688","attrValue":"","attrValueImg":""}],"id":"1473532887704797184","attrName":""}],"price":"25.00","sellCount":0,"id":"1473532887297949696","applyPrice":"0.00","stock":0,"status":1},{"productImg":"https://pos.upload.gznl.top/1179/2021/12/c24dbb2c-91b9-47be-85c5-d9f05ffa4d59.png","productSkuVOList":[{"productId":"1473532682649468928","isDelete":0,"setMeal":"","updateUser":"1364043181062094848","skuPrice":"35.00","skuStock":0,"weight":0,"updateTime":"2021-12-22 13:55:44","storeId":"1364043181120815104","volume":0,"skuNameStr":"","createTime":"2021-12-22 13:55:44","createUser":"1364043181062094848","id":"1473532684721455104","applyPrice":"0.00","skuAttrList":[{"attrValueId":"1473532683257643008","isDelete":0,"updateUser":"1364043181062094848","updateTime":"2021-12-22 13:55:44","attrId":"1473532683052122112","createTime":"2021-12-22 13:55:44","createUser":"1364043181062094848","id":"1473532684935364608","skuId":"1473532684721455104"}],"skuCode":"P202112221355432"}],"productName":"有机午餐一顿","posShow":true,"attrList":[{"productId":"1473532682649468928","isDelete":0,"needImg":false,"attrValueList":[{"isDelete":0,"attrId":"1473532683052122112","id":"1473532683257643008","attrValue":"","attrValueImg":""}],"id":"1473532683052122112","attrName":""}],"price":"35.00","sellCount":0,"id":"1473532682649468928","applyPrice":"0.00","stock":0,"status":1}]
class SpecialArea {
SpecialArea({
String img,
String id,
List<ProductList> productList,}){
_img = img;
_id = id;
_productList = productList;
}
SpecialArea.fromJson(dynamic json) {
_img = json['img'];
_id = json['id'];
if (json['productList'] != null) {
_productList = [];
json['productList'].forEach((v) {
_productList.add(ProductList.fromJson(v));
});
}
}
String _img;
String _id;
List<ProductList> _productList;
String get img => _img;
String get id => _id;
List<ProductList> get productList => _productList;
Map<String, dynamic> toJson() {
final map = <String, dynamic>{};
map['img'] = _img;
map['id'] = _id;
if (_productList != null) {
map['productList'] = _productList.map((v) => v.toJson()).toList();
}
return map;
}
}
/// productImg : "https://pos.upload.gznl.top/1179/2021/12/755b69d6-0047-44fe-9593-edac72fb9982.png"
/// productSkuVOList : [{"productId":"1473532887297949696","isDelete":0,"setMeal":"","updateUser":"1364043181062094848","skuPrice":"25.00","skuStock":0,"weight":0,"updateTime":"2021-12-22 13:56:32","storeId":"1364043181120815104","volume":0,"skuNameStr":"","createTime":"2021-12-22 13:56:32","createUser":"1364043181062094848","id":"1473532888409440256","applyPrice":"0.00","skuAttrList":[{"attrValueId":"1473532887918706688","isDelete":0,"updateUser":"1364043181062094848","updateTime":"2021-12-22 13:56:32","attrId":"1473532887704797184","createTime":"2021-12-22 13:56:32","createUser":"1364043181062094848","id":"1473532888619155456","skuId":"1473532888409440256"}],"skuCode":"P202112221356324"}]
/// productName : "有机草莓干"
/// posShow : true
/// attrList : [{"productId":"1473532887297949696","isDelete":0,"needImg":false,"attrValueList":[{"isDelete":0,"attrId":"1473532887704797184","id":"1473532887918706688","attrValue":"","attrValueImg":""}],"id":"1473532887704797184","attrName":""}]
/// price : "25.00"
/// sellCount : 0
/// id : "1473532887297949696"
/// applyPrice : "0.00"
/// stock : 0
/// status : 1
class ProductList {
ProductList({
String productImg,
List<ProductSkuVOList> productSkuVOList,
String productName,
bool posShow,
List<AttrList> attrList,
String price,
int sellCount,
String id,
String applyPrice,
int stock,
int status,}){
_productImg = productImg;
_productSkuVOList = productSkuVOList;
_productName = productName;
_posShow = posShow;
_attrList = attrList;
_price = price;
_sellCount = sellCount;
_id = id;
_applyPrice = applyPrice;
_stock = stock;
_status = status;
}
ProductList.fromJson(dynamic json) {
_productImg = json['productImg'];
if (json['productSkuVOList'] != null) {
_productSkuVOList = [];
json['productSkuVOList'].forEach((v) {
_productSkuVOList.add(ProductSkuVOList.fromJson(v));
});
}
_productName = json['productName'];
_posShow = json['posShow'];
if (json['attrList'] != null) {
_attrList = [];
json['attrList'].forEach((v) {
_attrList.add(AttrList.fromJson(v));
});
}
_price = json['price'];
_sellCount = json['sellCount'];
_id = json['id'];
_applyPrice = json['applyPrice'];
_stock = json['stock'];
_status = json['status'];
}
String _productImg;
List<ProductSkuVOList> _productSkuVOList;
String _productName;
bool _posShow;
List<AttrList> _attrList;
String _price;
int _sellCount;
String _id;
String _applyPrice;
int _stock;
int _status;
String get productImg => _productImg;
List<ProductSkuVOList> get productSkuVOList => _productSkuVOList;
String get productName => _productName;
bool get posShow => _posShow;
List<AttrList> get attrList => _attrList;
String get price => _price;
int get sellCount => _sellCount;
String get id => _id;
String get applyPrice => _applyPrice;
int get stock => _stock;
int get status => _status;
Map<String, dynamic> toJson() {
final map = <String, dynamic>{};
map['productImg'] = _productImg;
if (_productSkuVOList != null) {
map['productSkuVOList'] = _productSkuVOList.map((v) => v.toJson()).toList();
}
map['productName'] = _productName;
map['posShow'] = _posShow;
if (_attrList != null) {
map['attrList'] = _attrList.map((v) => v.toJson()).toList();
}
map['price'] = _price;
map['sellCount'] = _sellCount;
map['id'] = _id;
map['applyPrice'] = _applyPrice;
map['stock'] = _stock;
map['status'] = _status;
return map;
}
}
/// productId : "1473532887297949696"
/// isDelete : 0
/// needImg : false
/// attrValueList : [{"isDelete":0,"attrId":"1473532887704797184","id":"1473532887918706688","attrValue":"","attrValueImg":""}]
/// id : "1473532887704797184"
/// attrName : ""
class AttrList {
AttrList({
String productId,
int isDelete,
bool needImg,
List<AttrValueList> attrValueList,
String id,
String attrName,}){
_productId = productId;
_isDelete = isDelete;
_needImg = needImg;
_attrValueList = attrValueList;
_id = id;
_attrName = attrName;
}
AttrList.fromJson(dynamic json) {
_productId = json['productId'];
_isDelete = json['isDelete'];
_needImg = json['needImg'];
if (json['attrValueList'] != null) {
_attrValueList = [];
json['attrValueList'].forEach((v) {
_attrValueList.add(AttrValueList.fromJson(v));
});
}
_id = json['id'];
_attrName = json['attrName'];
}
String _productId;
int _isDelete;
bool _needImg;
List<AttrValueList> _attrValueList;
String _id;
String _attrName;
String get productId => _productId;
int get isDelete => _isDelete;
bool get needImg => _needImg;
List<AttrValueList> get attrValueList => _attrValueList;
String get id => _id;
String get attrName => _attrName;
Map<String, dynamic> toJson() {
final map = <String, dynamic>{};
map['productId'] = _productId;
map['isDelete'] = _isDelete;
map['needImg'] = _needImg;
if (_attrValueList != null) {
map['attrValueList'] = _attrValueList.map((v) => v.toJson()).toList();
}
map['id'] = _id;
map['attrName'] = _attrName;
return map;
}
}
/// isDelete : 0
/// attrId : "1473532887704797184"
/// id : "1473532887918706688"
/// attrValue : ""
/// attrValueImg : ""
class AttrValueList {
AttrValueList({
int isDelete,
String attrId,
String id,
String attrValue,
String attrValueImg,}){
_isDelete = isDelete;
_attrId = attrId;
_id = id;
_attrValue = attrValue;
_attrValueImg = attrValueImg;
}
AttrValueList.fromJson(dynamic json) {
_isDelete = json['isDelete'];
_attrId = json['attrId'];
_id = json['id'];
_attrValue = json['attrValue'];
_attrValueImg = json['attrValueImg'];
}
int _isDelete;
String _attrId;
String _id;
String _attrValue;
String _attrValueImg;
int get isDelete => _isDelete;
String get attrId => _attrId;
String get id => _id;
String get attrValue => _attrValue;
String get attrValueImg => _attrValueImg;
Map<String, dynamic> toJson() {
final map = <String, dynamic>{};
map['isDelete'] = _isDelete;
map['attrId'] = _attrId;
map['id'] = _id;
map['attrValue'] = _attrValue;
map['attrValueImg'] = _attrValueImg;
return map;
}
}
/// productId : "1473532887297949696"
/// isDelete : 0
/// setMeal : ""
/// updateUser : "1364043181062094848"
/// skuPrice : "25.00"
/// skuStock : 0
/// weight : 0
/// updateTime : "2021-12-22 13:56:32"
/// storeId : "1364043181120815104"
/// volume : 0
/// skuNameStr : ""
/// createTime : "2021-12-22 13:56:32"
/// createUser : "1364043181062094848"
/// id : "1473532888409440256"
/// applyPrice : "0.00"
/// skuAttrList : [{"attrValueId":"1473532887918706688","isDelete":0,"updateUser":"1364043181062094848","updateTime":"2021-12-22 13:56:32","attrId":"1473532887704797184","createTime":"2021-12-22 13:56:32","createUser":"1364043181062094848","id":"1473532888619155456","skuId":"1473532888409440256"}]
/// skuCode : "P202112221356324"
class ProductSkuVOList {
ProductSkuVOList({
String productId,
int isDelete,
String setMeal,
String updateUser,
String skuPrice,
int skuStock,
int weight,
String updateTime,
String storeId,
int volume,
String skuNameStr,
String createTime,
String createUser,
String id,
String applyPrice,
List<SkuAttrList> skuAttrList,
String skuCode,}){
_productId = productId;
_isDelete = isDelete;
_setMeal = setMeal;
_updateUser = updateUser;
_skuPrice = skuPrice;
_skuStock = skuStock;
_weight = weight;
_updateTime = updateTime;
_storeId = storeId;
_volume = volume;
_skuNameStr = skuNameStr;
_createTime = createTime;
_createUser = createUser;
_id = id;
_applyPrice = applyPrice;
_skuAttrList = skuAttrList;
_skuCode = skuCode;
}
ProductSkuVOList.fromJson(dynamic json) {
_productId = json['productId'];
_isDelete = json['isDelete'];
_setMeal = json['setMeal'];
_updateUser = json['updateUser'];
_skuPrice = json['skuPrice'];
_skuStock = json['skuStock'];
_weight = json['weight'];
_updateTime = json['updateTime'];
_storeId = json['storeId'];
_volume = json['volume'];
_skuNameStr = json['skuNameStr'];
_createTime = json['createTime'];
_createUser = json['createUser'];
_id = json['id'];
_applyPrice = json['applyPrice'];
if (json['skuAttrList'] != null) {
_skuAttrList = [];
json['skuAttrList'].forEach((v) {
_skuAttrList.add(SkuAttrList.fromJson(v));
});
}
_skuCode = json['skuCode'];
}
String _productId;
int _isDelete;
String _setMeal;
String _updateUser;
String _skuPrice;
int _skuStock;
int _weight;
String _updateTime;
String _storeId;
int _volume;
String _skuNameStr;
String _createTime;
String _createUser;
String _id;
String _applyPrice;
List<SkuAttrList> _skuAttrList;
String _skuCode;
String get productId => _productId;
int get isDelete => _isDelete;
String get setMeal => _setMeal;
String get updateUser => _updateUser;
String get skuPrice => _skuPrice;
int get skuStock => _skuStock;
int get weight => _weight;
String get updateTime => _updateTime;
String get storeId => _storeId;
int get volume => _volume;
String get skuNameStr => _skuNameStr;
String get createTime => _createTime;
String get createUser => _createUser;
String get id => _id;
String get applyPrice => _applyPrice;
List<SkuAttrList> get skuAttrList => _skuAttrList;
String get skuCode => _skuCode;
Map<String, dynamic> toJson() {
final map = <String, dynamic>{};
map['productId'] = _productId;
map['isDelete'] = _isDelete;
map['setMeal'] = _setMeal;
map['updateUser'] = _updateUser;
map['skuPrice'] = _skuPrice;
map['skuStock'] = _skuStock;
map['weight'] = _weight;
map['updateTime'] = _updateTime;
map['storeId'] = _storeId;
map['volume'] = _volume;
map['skuNameStr'] = _skuNameStr;
map['createTime'] = _createTime;
map['createUser'] = _createUser;
map['id'] = _id;
map['applyPrice'] = _applyPrice;
if (_skuAttrList != null) {
map['skuAttrList'] = _skuAttrList.map((v) => v.toJson()).toList();
}
map['skuCode'] = _skuCode;
return map;
}
}
/// attrValueId : "1473532887918706688"
/// isDelete : 0
/// updateUser : "1364043181062094848"
/// updateTime : "2021-12-22 13:56:32"
/// attrId : "1473532887704797184"
/// createTime : "2021-12-22 13:56:32"
/// createUser : "1364043181062094848"
/// id : "1473532888619155456"
/// skuId : "1473532888409440256"
class SkuAttrList {
SkuAttrList({
String attrValueId,
int isDelete,
String updateUser,
String updateTime,
String attrId,
String createTime,
String createUser,
String id,
String skuId,}){
_attrValueId = attrValueId;
_isDelete = isDelete;
_updateUser = updateUser;
_updateTime = updateTime;
_attrId = attrId;
_createTime = createTime;
_createUser = createUser;
_id = id;
_skuId = skuId;
}
SkuAttrList.fromJson(dynamic json) {
_attrValueId = json['attrValueId'];
_isDelete = json['isDelete'];
_updateUser = json['updateUser'];
_updateTime = json['updateTime'];
_attrId = json['attrId'];
_createTime = json['createTime'];
_createUser = json['createUser'];
_id = json['id'];
_skuId = json['skuId'];
}
String _attrValueId;
int _isDelete;
String _updateUser;
String _updateTime;
String _attrId;
String _createTime;
String _createUser;
String _id;
String _skuId;
String get attrValueId => _attrValueId;
int get isDelete => _isDelete;
String get updateUser => _updateUser;
String get updateTime => _updateTime;
String get attrId => _attrId;
String get createTime => _createTime;
String get createUser => _createUser;
String get id => _id;
String get skuId => _skuId;
Map<String, dynamic> toJson() {
final map = <String, dynamic>{};
map['attrValueId'] = _attrValueId;
map['isDelete'] = _isDelete;
map['updateUser'] = _updateUser;
map['updateTime'] = _updateTime;
map['attrId'] = _attrId;
map['createTime'] = _createTime;
map['createUser'] = _createUser;
map['id'] = _id;
map['skuId'] = _skuId;
return map;
}
}