|
|
|
/// adminProductVOList : [{"id":"1699346530059681792","groupId":"1685961077201829888","groupName":"炸蚵嗲","productName":"盲盒","productImg":"https://pos.upload.lotus-wallet.com/1195/2023/09/662703cb-3711-4e96-8379-cdd868cd7803.jpg","price":"66.00","applyPrice":"66.00","stock":971,"sellCount":17,"status":1,"posShow":true,"deliveries":null,"ticketType":null,"ticketDays":null,"attrList":null,"productSkuVOList":[{"id":"1699346530126790656","createTime":"2023-09-06 16:59:20","createUser":"1684404021814624256","updateTime":"2023-09-06 16:59:20","updateUser":"1684404021814624256","storeId":"1645701646107279360","skuCode":"P202309061659192","skuNameStr":"","productId":"1699346530059681792","skuPrice":"66.00","applyPrice":"66.00","vipPrice":"66.00","packagingFee":"0.00","skuImg":null,"skuStock":971,"autoRenewSkuStock":0,"deliveries":0,"ticketType":"","ticketWipedTimeTemplateId":null,"takeType":null,"ticketDays":"0","ticketExpireTime":"23:59:59","sort":50,"setMeal":"","productSetMeals":[],"weight":0.0,"volume":0.0,"isDelete":0,"material":null,"version":0,"skuTickets":[],"ticketStyle":"","skuAttrCodeDTOList":null,"skuAttrList":[{"id":"1699346530143567872","createTime":"2023-09-06 16:59:20","createUser":"1684404021814624256","updateTime":"2023-09-06 16:59:20","updateUser":"1684404021814624256","skuId":"1699346530126790656","attrId":"1699346530089041920","attrValueId":"1699346530101624832","sortOrder":null,"isDelete":0}],"setMealDTOList":null,"discountPrice":""}],"skuId":null,"details":"<p>盲盒</p>","thumbnailImg":"https://pos.upload.lotus-wallet.com/1195/2023/09/ea2ebd28-1cf1-4148-afde-11549901737a.jpg","info":"","tenantCode":"1195","sort":50,"subscribeParam":null,"storeId":"1645701646107279360"},{"id":"1694298535236730880","groupId":"1685961077201829888","groupName":"炸蚵嗲","productName":"炸渣喳","productImg":"https://pos.upload.lotus-wallet.com/1195/2023/08/55299291-2f2c-433b-b229-bb13fa40395d.jpg","price":"10.00","applyPrice":"12.00","stock":-4,"sellCount":1,"status":1,"posShow":true,"deliveries":null,"ticketType":null,"ticketDays":null,"attrList":null,"productSkuVOList":[{"id":"1694298535790379008","createTime":"2023-08-23 18:40:24","createUser":"1640233401329909760","updateTime":"2023-08-23 18:40:24","updateUser":"1640233401329909760","storeId":"1645701646107279360","skuCode":"P202308231840242","skuNameStr":"","productId":"1694298535236730880","skuPrice":"10.00","applyPrice":"12.00","vipPrice":"10.00","packagingFee":"0.00","skuImg":null,"skuStock":-4,"autoRenewSkuStock":0,"deliveries":0,"ticketType":"","ticketWipedTimeTemplateId":null,"takeType":null,"ticketDays":"0","ticketExpireTime":"23:59:59","sort":50,"setMeal":"","productSetMeals":[],"weight":0.0,"volume":0.0,"isDelete":0,"material":null,"version":0,"skuTickets":[],"ticketStyle":"","skuAttrCodeDTOList":null,"skuAttrList":[{"id":"1694298535928791040","createTime":"2023-08-23 18:40:24","createUser":"1640233401329909760","updateTime":"2023-08-23 18:40:24","updateUser":"1640233401329909760","skuId":"1694298535790379008","attrId":"1694298535480000512","attrValueId":"1694298535610023936","sortOrder":null,"isDelete":0}],"setMealDTOList":null,"discountPrice":""}],"skuId":null,"details":"<p>炸渣喳</p>","thumbnailImg":"https://pos.upload.lotus-wallet.com/1195/2023/09/511d4e4d-50a3-4557-b3ad-c9562549d8d3.jpg","info":"","tenantCode":"1195","sort":2,"subscribeParam":null,"storeId":"1645701646107279360"},{"id":"1686917026729164800","groupId":"1685954754749923328","groupName":"洛神系列","productName":"金桂洛神饮","productImg":"https://pos.upload.lotus-wallet.com/1195/2023/08/3d5421f7-44b4-47aa-bf99-ed266e1c8bcf.jpg","price":"16.00","applyPrice":"16.00","stock":-16,"sellCount":16,"status":1,"posShow":true,"deliveries":null,"ticketType":null,"ticketDays":null,"attrList":null,"productSkuVOList":[{"id":"1699688137048981504","createTime":"2023-08-03 09:48:55","createUser":"1640233401329909760","updateTime":"2023-08-03 09:48:55","updateUser":"1640233401329909760","storeId":"1645692068967743488","skuCode":"P202308030948556","skuNameStr":"700ml 正常冰 七分糖","
|
|
|
|
/// total : 121
|
|
|
|
|
|
|
|
class BusinessGoods {
|
|
|
|
BusinessGoods({
|
|
|
|
List<AdminProductVoList> adminProductVOList,
|
|
|
|
num total,}){
|
|
|
|
_adminProductVOList = adminProductVOList;
|
|
|
|
_total = total;
|
|
|
|
}
|
|
|
|
|
|
|
|
BusinessGoods.fromJson(dynamic json) {
|
|
|
|
if (json['adminProductVOList'] != null) {
|
|
|
|
_adminProductVOList = [];
|
|
|
|
json['adminProductVOList'].forEach((v) {
|
|
|
|
_adminProductVOList.add(AdminProductVoList.fromJson(v));
|
|
|
|
});
|
|
|
|
}
|
|
|
|
_total = json['total'];
|
|
|
|
}
|
|
|
|
List<AdminProductVoList> _adminProductVOList;
|
|
|
|
num _total;
|
|
|
|
BusinessGoods copyWith({ List<AdminProductVoList> adminProductVOList,
|
|
|
|
num total,
|
|
|
|
}) => BusinessGoods( adminProductVOList: adminProductVOList ?? _adminProductVOList,
|
|
|
|
total: total ?? _total,
|
|
|
|
);
|
|
|
|
List<AdminProductVoList> get adminProductVOList => _adminProductVOList;
|
|
|
|
num get total => _total;
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
final map = <String, dynamic>{};
|
|
|
|
if (_adminProductVOList != null) {
|
|
|
|
map['adminProductVOList'] = _adminProductVOList.map((v) => v.toJson()).toList();
|
|
|
|
}
|
|
|
|
map['total'] = _total;
|
|
|
|
return map;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
/// id : "1699346530059681792"
|
|
|
|
/// groupId : "1685961077201829888"
|
|
|
|
/// groupName : "炸蚵嗲"
|
|
|
|
/// productName : "盲盒"
|
|
|
|
/// productImg : "https://pos.upload.lotus-wallet.com/1195/2023/09/662703cb-3711-4e96-8379-cdd868cd7803.jpg"
|
|
|
|
/// price : "66.00"
|
|
|
|
/// applyPrice : "66.00"
|
|
|
|
/// stock : 971
|
|
|
|
/// sellCount : 17
|
|
|
|
/// status : 1
|
|
|
|
/// posShow : true
|
|
|
|
/// deliveries : null
|
|
|
|
/// ticketType : null
|
|
|
|
/// ticketDays : null
|
|
|
|
/// attrList : null
|
|
|
|
/// productSkuVOList : [{"id":"1699346530126790656","createTime":"2023-09-06 16:59:20","createUser":"1684404021814624256","updateTime":"2023-09-06 16:59:20","updateUser":"1684404021814624256","storeId":"1645701646107279360","skuCode":"P202309061659192","skuNameStr":"","productId":"1699346530059681792","skuPrice":"66.00","applyPrice":"66.00","vipPrice":"66.00","packagingFee":"0.00","skuImg":null,"skuStock":971,"autoRenewSkuStock":0,"deliveries":0,"ticketType":"","ticketWipedTimeTemplateId":null,"takeType":null,"ticketDays":"0","ticketExpireTime":"23:59:59","sort":50,"setMeal":"","productSetMeals":[],"weight":0.0,"volume":0.0,"isDelete":0,"material":null,"version":0,"skuTickets":[],"ticketStyle":"","skuAttrCodeDTOList":null,"skuAttrList":[{"id":"1699346530143567872","createTime":"2023-09-06 16:59:20","createUser":"1684404021814624256","updateTime":"2023-09-06 16:59:20","updateUser":"1684404021814624256","skuId":"1699346530126790656","attrId":"1699346530089041920","attrValueId":"1699346530101624832","sortOrder":null,"isDelete":0}],"setMealDTOList":null,"discountPrice":""}]
|
|
|
|
/// skuId : null
|
|
|
|
/// details : "<p>盲盒</p>"
|
|
|
|
/// thumbnailImg : "https://pos.upload.lotus-wallet.com/1195/2023/09/ea2ebd28-1cf1-4148-afde-11549901737a.jpg"
|
|
|
|
/// info : ""
|
|
|
|
/// tenantCode : "1195"
|
|
|
|
/// sort : 50
|
|
|
|
/// subscribeParam : null
|
|
|
|
/// storeId : "1645701646107279360"
|
|
|
|
|
|
|
|
class AdminProductVoList {
|
|
|
|
AdminProductVoList({
|
|
|
|
String id,
|
|
|
|
String groupId,
|
|
|
|
String groupName,
|
|
|
|
String productName,
|
|
|
|
String productImg,
|
|
|
|
String price,
|
|
|
|
String applyPrice,
|
|
|
|
num stock,
|
|
|
|
num sellCount,
|
|
|
|
num status,
|
|
|
|
bool posShow,
|
|
|
|
dynamic deliveries,
|
|
|
|
dynamic ticketType,
|
|
|
|
dynamic ticketDays,
|
|
|
|
dynamic attrList,
|
|
|
|
List<ProductSkuVoList> productSkuVOList,
|
|
|
|
dynamic skuId,
|
|
|
|
String details,
|
|
|
|
String thumbnailImg,
|
|
|
|
String info,
|
|
|
|
String tenantCode,
|
|
|
|
num sort,
|
|
|
|
dynamic subscribeParam,
|
|
|
|
String storeId,}){
|
|
|
|
_id = id;
|
|
|
|
_groupId = groupId;
|
|
|
|
_groupName = groupName;
|
|
|
|
_productName = productName;
|
|
|
|
_productImg = productImg;
|
|
|
|
_price = price;
|
|
|
|
_applyPrice = applyPrice;
|
|
|
|
_stock = stock;
|
|
|
|
_sellCount = sellCount;
|
|
|
|
_status = status;
|
|
|
|
_posShow = posShow;
|
|
|
|
_deliveries = deliveries;
|
|
|
|
_ticketType = ticketType;
|
|
|
|
_ticketDays = ticketDays;
|
|
|
|
_attrList = attrList;
|
|
|
|
_productSkuVOList = productSkuVOList;
|
|
|
|
_skuId = skuId;
|
|
|
|
_details = details;
|
|
|
|
_thumbnailImg = thumbnailImg;
|
|
|
|
_info = info;
|
|
|
|
_tenantCode = tenantCode;
|
|
|
|
_sort = sort;
|
|
|
|
_subscribeParam = subscribeParam;
|
|
|
|
_storeId = storeId;
|
|
|
|
}
|
|
|
|
|
|
|
|
AdminProductVoList.fromJson(dynamic json) {
|
|
|
|
_id = json['id'];
|
|
|
|
_groupId = json['groupId'];
|
|
|
|
_groupName = json['groupName'];
|
|
|
|
_productName = json['productName'];
|
|
|
|
_productImg = json['productImg'];
|
|
|
|
_price = json['price'];
|
|
|
|
_applyPrice = json['applyPrice'];
|
|
|
|
_stock = json['stock'];
|
|
|
|
_sellCount = json['sellCount'];
|
|
|
|
_status = json['status'];
|
|
|
|
_posShow = json['posShow'];
|
|
|
|
_deliveries = json['deliveries'];
|
|
|
|
_ticketType = json['ticketType'];
|
|
|
|
_ticketDays = json['ticketDays'];
|
|
|
|
_attrList = json['attrList'];
|
|
|
|
if (json['productSkuVOList'] != null) {
|
|
|
|
_productSkuVOList = [];
|
|
|
|
json['productSkuVOList'].forEach((v) {
|
|
|
|
_productSkuVOList.add(ProductSkuVoList.fromJson(v));
|
|
|
|
});
|
|
|
|
}
|
|
|
|
_skuId = json['skuId'];
|
|
|
|
_details = json['details'];
|
|
|
|
_thumbnailImg = json['thumbnailImg'];
|
|
|
|
_info = json['info'];
|
|
|
|
_tenantCode = json['tenantCode'];
|
|
|
|
_sort = json['sort'];
|
|
|
|
_subscribeParam = json['subscribeParam'];
|
|
|
|
_storeId = json['storeId'];
|
|
|
|
}
|
|
|
|
String _id;
|
|
|
|
String _groupId;
|
|
|
|
String _groupName;
|
|
|
|
String _productName;
|
|
|
|
String _productImg;
|
|
|
|
String _price;
|
|
|
|
String _applyPrice;
|
|
|
|
num _stock;
|
|
|
|
num _sellCount;
|
|
|
|
num _status;
|
|
|
|
bool _posShow;
|
|
|
|
dynamic _deliveries;
|
|
|
|
dynamic _ticketType;
|
|
|
|
dynamic _ticketDays;
|
|
|
|
dynamic _attrList;
|
|
|
|
List<ProductSkuVoList> _productSkuVOList;
|
|
|
|
dynamic _skuId;
|
|
|
|
String _details;
|
|
|
|
String _thumbnailImg;
|
|
|
|
String _info;
|
|
|
|
String _tenantCode;
|
|
|
|
num _sort;
|
|
|
|
dynamic _subscribeParam;
|
|
|
|
String _storeId;
|
|
|
|
AdminProductVoList copyWith({ String id,
|
|
|
|
String groupId,
|
|
|
|
String groupName,
|
|
|
|
String productName,
|
|
|
|
String productImg,
|
|
|
|
String price,
|
|
|
|
String applyPrice,
|
|
|
|
num stock,
|
|
|
|
num sellCount,
|
|
|
|
num status,
|
|
|
|
bool posShow,
|
|
|
|
dynamic deliveries,
|
|
|
|
dynamic ticketType,
|
|
|
|
dynamic ticketDays,
|
|
|
|
dynamic attrList,
|
|
|
|
List<ProductSkuVoList> productSkuVOList,
|
|
|
|
dynamic skuId,
|
|
|
|
String details,
|
|
|
|
String thumbnailImg,
|
|
|
|
String info,
|
|
|
|
String tenantCode,
|
|
|
|
num sort,
|
|
|
|
dynamic subscribeParam,
|
|
|
|
String storeId,
|
|
|
|
}) => AdminProductVoList( id: id ?? _id,
|
|
|
|
groupId: groupId ?? _groupId,
|
|
|
|
groupName: groupName ?? _groupName,
|
|
|
|
productName: productName ?? _productName,
|
|
|
|
productImg: productImg ?? _productImg,
|
|
|
|
price: price ?? _price,
|
|
|
|
applyPrice: applyPrice ?? _applyPrice,
|
|
|
|
stock: stock ?? _stock,
|
|
|
|
sellCount: sellCount ?? _sellCount,
|
|
|
|
status: status ?? _status,
|
|
|
|
posShow: posShow ?? _posShow,
|
|
|
|
deliveries: deliveries ?? _deliveries,
|
|
|
|
ticketType: ticketType ?? _ticketType,
|
|
|
|
ticketDays: ticketDays ?? _ticketDays,
|
|
|
|
attrList: attrList ?? _attrList,
|
|
|
|
productSkuVOList: productSkuVOList ?? _productSkuVOList,
|
|
|
|
skuId: skuId ?? _skuId,
|
|
|
|
details: details ?? _details,
|
|
|
|
thumbnailImg: thumbnailImg ?? _thumbnailImg,
|
|
|
|
info: info ?? _info,
|
|
|
|
tenantCode: tenantCode ?? _tenantCode,
|
|
|
|
sort: sort ?? _sort,
|
|
|
|
subscribeParam: subscribeParam ?? _subscribeParam,
|
|
|
|
storeId: storeId ?? _storeId,
|
|
|
|
);
|
|
|
|
String get id => _id;
|
|
|
|
String get groupId => _groupId;
|
|
|
|
String get groupName => _groupName;
|
|
|
|
String get productName => _productName;
|
|
|
|
String get productImg => _productImg;
|
|
|
|
String get price => _price;
|
|
|
|
String get applyPrice => _applyPrice;
|
|
|
|
num get stock => _stock;
|
|
|
|
num get sellCount => _sellCount;
|
|
|
|
num get status => _status;
|
|
|
|
bool get posShow => _posShow;
|
|
|
|
dynamic get deliveries => _deliveries;
|
|
|
|
dynamic get ticketType => _ticketType;
|
|
|
|
dynamic get ticketDays => _ticketDays;
|
|
|
|
dynamic get attrList => _attrList;
|
|
|
|
List<ProductSkuVoList> get productSkuVOList => _productSkuVOList;
|
|
|
|
dynamic get skuId => _skuId;
|
|
|
|
String get details => _details;
|
|
|
|
String get thumbnailImg => _thumbnailImg;
|
|
|
|
String get info => _info;
|
|
|
|
String get tenantCode => _tenantCode;
|
|
|
|
num get sort => _sort;
|
|
|
|
dynamic get subscribeParam => _subscribeParam;
|
|
|
|
String get storeId => _storeId;
|
|
|
|
bool _isSelect = false;
|
|
|
|
|
|
|
|
bool get isSelect => _isSelect;
|
|
|
|
|
|
|
|
set isSelect(bool value) {
|
|
|
|
_isSelect = value;
|
|
|
|
}
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
final map = <String, dynamic>{};
|
|
|
|
map['id'] = _id;
|
|
|
|
map['groupId'] = _groupId;
|
|
|
|
map['groupName'] = _groupName;
|
|
|
|
map['productName'] = _productName;
|
|
|
|
map['productImg'] = _productImg;
|
|
|
|
map['price'] = _price;
|
|
|
|
map['applyPrice'] = _applyPrice;
|
|
|
|
map['stock'] = _stock;
|
|
|
|
map['sellCount'] = _sellCount;
|
|
|
|
map['status'] = _status;
|
|
|
|
map['posShow'] = _posShow;
|
|
|
|
map['deliveries'] = _deliveries;
|
|
|
|
map['ticketType'] = _ticketType;
|
|
|
|
map['ticketDays'] = _ticketDays;
|
|
|
|
map['attrList'] = _attrList;
|
|
|
|
if (_productSkuVOList != null) {
|
|
|
|
map['productSkuVOList'] = _productSkuVOList.map((v) => v.toJson()).toList();
|
|
|
|
}
|
|
|
|
map['skuId'] = _skuId;
|
|
|
|
map['details'] = _details;
|
|
|
|
map['thumbnailImg'] = _thumbnailImg;
|
|
|
|
map['info'] = _info;
|
|
|
|
map['tenantCode'] = _tenantCode;
|
|
|
|
map['sort'] = _sort;
|
|
|
|
map['subscribeParam'] = _subscribeParam;
|
|
|
|
map['storeId'] = _storeId;
|
|
|
|
return map;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
/// id : "1699346530126790656"
|
|
|
|
/// createTime : "2023-09-06 16:59:20"
|
|
|
|
/// createUser : "1684404021814624256"
|
|
|
|
/// updateTime : "2023-09-06 16:59:20"
|
|
|
|
/// updateUser : "1684404021814624256"
|
|
|
|
/// storeId : "1645701646107279360"
|
|
|
|
/// skuCode : "P202309061659192"
|
|
|
|
/// skuNameStr : ""
|
|
|
|
/// productId : "1699346530059681792"
|
|
|
|
/// skuPrice : "66.00"
|
|
|
|
/// applyPrice : "66.00"
|
|
|
|
/// vipPrice : "66.00"
|
|
|
|
/// packagingFee : "0.00"
|
|
|
|
/// skuImg : null
|
|
|
|
/// skuStock : 971
|
|
|
|
/// autoRenewSkuStock : 0
|
|
|
|
/// deliveries : 0
|
|
|
|
/// ticketType : ""
|
|
|
|
/// ticketWipedTimeTemplateId : null
|
|
|
|
/// takeType : null
|
|
|
|
/// ticketDays : "0"
|
|
|
|
/// ticketExpireTime : "23:59:59"
|
|
|
|
/// sort : 50
|
|
|
|
/// setMeal : ""
|
|
|
|
/// productSetMeals : []
|
|
|
|
/// weight : 0.0
|
|
|
|
/// volume : 0.0
|
|
|
|
/// isDelete : 0
|
|
|
|
/// material : null
|
|
|
|
/// version : 0
|
|
|
|
/// skuTickets : []
|
|
|
|
/// ticketStyle : ""
|
|
|
|
/// skuAttrCodeDTOList : null
|
|
|
|
/// skuAttrList : [{"id":"1699346530143567872","createTime":"2023-09-06 16:59:20","createUser":"1684404021814624256","updateTime":"2023-09-06 16:59:20","updateUser":"1684404021814624256","skuId":"1699346530126790656","attrId":"1699346530089041920","attrValueId":"1699346530101624832","sortOrder":null,"isDelete":0}]
|
|
|
|
/// setMealDTOList : null
|
|
|
|
/// discountPrice : ""
|
|
|
|
|
|
|
|
class ProductSkuVoList {
|
|
|
|
ProductSkuVoList({
|
|
|
|
String id,
|
|
|
|
String createTime,
|
|
|
|
String createUser,
|
|
|
|
String updateTime,
|
|
|
|
String updateUser,
|
|
|
|
String storeId,
|
|
|
|
String skuCode,
|
|
|
|
String skuNameStr,
|
|
|
|
String productId,
|
|
|
|
String skuPrice,
|
|
|
|
String applyPrice,
|
|
|
|
String vipPrice,
|
|
|
|
String packagingFee,
|
|
|
|
dynamic skuImg,
|
|
|
|
num skuStock,
|
|
|
|
num autoRenewSkuStock,
|
|
|
|
num deliveries,
|
|
|
|
String ticketType,
|
|
|
|
dynamic ticketWipedTimeTemplateId,
|
|
|
|
dynamic takeType,
|
|
|
|
String ticketDays,
|
|
|
|
String ticketExpireTime,
|
|
|
|
num sort,
|
|
|
|
String setMeal,
|
|
|
|
List<dynamic> productSetMeals,
|
|
|
|
num weight,
|
|
|
|
num volume,
|
|
|
|
num isDelete,
|
|
|
|
dynamic material,
|
|
|
|
num version,
|
|
|
|
List<dynamic> skuTickets,
|
|
|
|
String ticketStyle,
|
|
|
|
dynamic skuAttrCodeDTOList,
|
|
|
|
List<SkuAttrList> skuAttrList,
|
|
|
|
dynamic setMealDTOList,
|
|
|
|
String discountPrice,}){
|
|
|
|
_id = id;
|
|
|
|
_createTime = createTime;
|
|
|
|
_createUser = createUser;
|
|
|
|
_updateTime = updateTime;
|
|
|
|
_updateUser = updateUser;
|
|
|
|
_storeId = storeId;
|
|
|
|
_skuCode = skuCode;
|
|
|
|
_skuNameStr = skuNameStr;
|
|
|
|
_productId = productId;
|
|
|
|
_skuPrice = skuPrice;
|
|
|
|
_applyPrice = applyPrice;
|
|
|
|
_vipPrice = vipPrice;
|
|
|
|
_packagingFee = packagingFee;
|
|
|
|
_skuImg = skuImg;
|
|
|
|
_skuStock = skuStock;
|
|
|
|
_autoRenewSkuStock = autoRenewSkuStock;
|
|
|
|
_deliveries = deliveries;
|
|
|
|
_ticketType = ticketType;
|
|
|
|
_ticketWipedTimeTemplateId = ticketWipedTimeTemplateId;
|
|
|
|
_takeType = takeType;
|
|
|
|
_ticketDays = ticketDays;
|
|
|
|
_ticketExpireTime = ticketExpireTime;
|
|
|
|
_sort = sort;
|
|
|
|
_setMeal = setMeal;
|
|
|
|
_productSetMeals = productSetMeals;
|
|
|
|
_weight = weight;
|
|
|
|
_volume = volume;
|
|
|
|
_isDelete = isDelete;
|
|
|
|
_material = material;
|
|
|
|
_version = version;
|
|
|
|
_skuTickets = skuTickets;
|
|
|
|
_ticketStyle = ticketStyle;
|
|
|
|
_skuAttrCodeDTOList = skuAttrCodeDTOList;
|
|
|
|
_skuAttrList = skuAttrList;
|
|
|
|
_setMealDTOList = setMealDTOList;
|
|
|
|
_discountPrice = discountPrice;
|
|
|
|
}
|
|
|
|
|
|
|
|
ProductSkuVoList.fromJson(dynamic json) {
|
|
|
|
_id = json['id'];
|
|
|
|
_createTime = json['createTime'];
|
|
|
|
_createUser = json['createUser'];
|
|
|
|
_updateTime = json['updateTime'];
|
|
|
|
_updateUser = json['updateUser'];
|
|
|
|
_storeId = json['storeId'];
|
|
|
|
_skuCode = json['skuCode'];
|
|
|
|
_skuNameStr = json['skuNameStr'];
|
|
|
|
_productId = json['productId'];
|
|
|
|
_skuPrice = json['skuPrice'];
|
|
|
|
_applyPrice = json['applyPrice'];
|
|
|
|
_vipPrice = json['vipPrice'];
|
|
|
|
_packagingFee = json['packagingFee'];
|
|
|
|
_skuImg = json['skuImg'];
|
|
|
|
_skuStock = json['skuStock'];
|
|
|
|
_autoRenewSkuStock = json['autoRenewSkuStock'];
|
|
|
|
_deliveries = json['deliveries'];
|
|
|
|
_ticketType = json['ticketType'];
|
|
|
|
_ticketWipedTimeTemplateId = json['ticketWipedTimeTemplateId'];
|
|
|
|
_takeType = json['takeType'];
|
|
|
|
_ticketDays = json['ticketDays'];
|
|
|
|
_ticketExpireTime = json['ticketExpireTime'];
|
|
|
|
_sort = json['sort'];
|
|
|
|
_setMeal = json['setMeal'];
|
|
|
|
// if (json['productSetMeals'] != null) {
|
|
|
|
// _productSetMeals = [];
|
|
|
|
// json['productSetMeals'].forEach((v) {
|
|
|
|
// _productSetMeals.add(Dynamic.fromJson(v));
|
|
|
|
// });
|
|
|
|
// }
|
|
|
|
_weight = json['weight'];
|
|
|
|
_volume = json['volume'];
|
|
|
|
_isDelete = json['isDelete'];
|
|
|
|
_material = json['material'];
|
|
|
|
_version = json['version'];
|
|
|
|
// if (json['skuTickets'] != null) {
|
|
|
|
// _skuTickets = [];
|
|
|
|
// json['skuTickets'].forEach((v) {
|
|
|
|
// _skuTickets.add(Dynamic.fromJson(v));
|
|
|
|
// });
|
|
|
|
// }
|
|
|
|
_ticketStyle = json['ticketStyle'];
|
|
|
|
_skuAttrCodeDTOList = json['skuAttrCodeDTOList'];
|
|
|
|
if (json['skuAttrList'] != null) {
|
|
|
|
_skuAttrList = [];
|
|
|
|
json['skuAttrList'].forEach((v) {
|
|
|
|
_skuAttrList.add(SkuAttrList.fromJson(v));
|
|
|
|
});
|
|
|
|
}
|
|
|
|
_setMealDTOList = json['setMealDTOList'];
|
|
|
|
_discountPrice = json['discountPrice'];
|
|
|
|
}
|
|
|
|
String _id;
|
|
|
|
String _createTime;
|
|
|
|
String _createUser;
|
|
|
|
String _updateTime;
|
|
|
|
String _updateUser;
|
|
|
|
String _storeId;
|
|
|
|
String _skuCode;
|
|
|
|
String _skuNameStr;
|
|
|
|
String _productId;
|
|
|
|
String _skuPrice;
|
|
|
|
String _applyPrice;
|
|
|
|
String _vipPrice;
|
|
|
|
String _packagingFee;
|
|
|
|
dynamic _skuImg;
|
|
|
|
num _skuStock;
|
|
|
|
num _autoRenewSkuStock;
|
|
|
|
num _deliveries;
|
|
|
|
String _ticketType;
|
|
|
|
dynamic _ticketWipedTimeTemplateId;
|
|
|
|
dynamic _takeType;
|
|
|
|
String _ticketDays;
|
|
|
|
String _ticketExpireTime;
|
|
|
|
num _sort;
|
|
|
|
String _setMeal;
|
|
|
|
List<dynamic> _productSetMeals;
|
|
|
|
num _weight;
|
|
|
|
num _volume;
|
|
|
|
num _isDelete;
|
|
|
|
dynamic _material;
|
|
|
|
num _version;
|
|
|
|
List<dynamic> _skuTickets;
|
|
|
|
String _ticketStyle;
|
|
|
|
dynamic _skuAttrCodeDTOList;
|
|
|
|
List<SkuAttrList> _skuAttrList;
|
|
|
|
dynamic _setMealDTOList;
|
|
|
|
String _discountPrice;
|
|
|
|
ProductSkuVoList copyWith({ String id,
|
|
|
|
String createTime,
|
|
|
|
String createUser,
|
|
|
|
String updateTime,
|
|
|
|
String updateUser,
|
|
|
|
String storeId,
|
|
|
|
String skuCode,
|
|
|
|
String skuNameStr,
|
|
|
|
String productId,
|
|
|
|
String skuPrice,
|
|
|
|
String applyPrice,
|
|
|
|
String vipPrice,
|
|
|
|
String packagingFee,
|
|
|
|
dynamic skuImg,
|
|
|
|
num skuStock,
|
|
|
|
num autoRenewSkuStock,
|
|
|
|
num deliveries,
|
|
|
|
String ticketType,
|
|
|
|
dynamic ticketWipedTimeTemplateId,
|
|
|
|
dynamic takeType,
|
|
|
|
String ticketDays,
|
|
|
|
String ticketExpireTime,
|
|
|
|
num sort,
|
|
|
|
String setMeal,
|
|
|
|
List<dynamic> productSetMeals,
|
|
|
|
num weight,
|
|
|
|
num volume,
|
|
|
|
num isDelete,
|
|
|
|
dynamic material,
|
|
|
|
num version,
|
|
|
|
List<dynamic> skuTickets,
|
|
|
|
String ticketStyle,
|
|
|
|
dynamic skuAttrCodeDTOList,
|
|
|
|
List<SkuAttrList> skuAttrList,
|
|
|
|
dynamic setMealDTOList,
|
|
|
|
String discountPrice,
|
|
|
|
}) => ProductSkuVoList( id: id ?? _id,
|
|
|
|
createTime: createTime ?? _createTime,
|
|
|
|
createUser: createUser ?? _createUser,
|
|
|
|
updateTime: updateTime ?? _updateTime,
|
|
|
|
updateUser: updateUser ?? _updateUser,
|
|
|
|
storeId: storeId ?? _storeId,
|
|
|
|
skuCode: skuCode ?? _skuCode,
|
|
|
|
skuNameStr: skuNameStr ?? _skuNameStr,
|
|
|
|
productId: productId ?? _productId,
|
|
|
|
skuPrice: skuPrice ?? _skuPrice,
|
|
|
|
applyPrice: applyPrice ?? _applyPrice,
|
|
|
|
vipPrice: vipPrice ?? _vipPrice,
|
|
|
|
packagingFee: packagingFee ?? _packagingFee,
|
|
|
|
skuImg: skuImg ?? _skuImg,
|
|
|
|
skuStock: skuStock ?? _skuStock,
|
|
|
|
autoRenewSkuStock: autoRenewSkuStock ?? _autoRenewSkuStock,
|
|
|
|
deliveries: deliveries ?? _deliveries,
|
|
|
|
ticketType: ticketType ?? _ticketType,
|
|
|
|
ticketWipedTimeTemplateId: ticketWipedTimeTemplateId ?? _ticketWipedTimeTemplateId,
|
|
|
|
takeType: takeType ?? _takeType,
|
|
|
|
ticketDays: ticketDays ?? _ticketDays,
|
|
|
|
ticketExpireTime: ticketExpireTime ?? _ticketExpireTime,
|
|
|
|
sort: sort ?? _sort,
|
|
|
|
setMeal: setMeal ?? _setMeal,
|
|
|
|
productSetMeals: productSetMeals ?? _productSetMeals,
|
|
|
|
weight: weight ?? _weight,
|
|
|
|
volume: volume ?? _volume,
|
|
|
|
isDelete: isDelete ?? _isDelete,
|
|
|
|
material: material ?? _material,
|
|
|
|
version: version ?? _version,
|
|
|
|
skuTickets: skuTickets ?? _skuTickets,
|
|
|
|
ticketStyle: ticketStyle ?? _ticketStyle,
|
|
|
|
skuAttrCodeDTOList: skuAttrCodeDTOList ?? _skuAttrCodeDTOList,
|
|
|
|
skuAttrList: skuAttrList ?? _skuAttrList,
|
|
|
|
setMealDTOList: setMealDTOList ?? _setMealDTOList,
|
|
|
|
discountPrice: discountPrice ?? _discountPrice,
|
|
|
|
);
|
|
|
|
String get id => _id;
|
|
|
|
String get createTime => _createTime;
|
|
|
|
String get createUser => _createUser;
|
|
|
|
String get updateTime => _updateTime;
|
|
|
|
String get updateUser => _updateUser;
|
|
|
|
String get storeId => _storeId;
|
|
|
|
String get skuCode => _skuCode;
|
|
|
|
String get skuNameStr => _skuNameStr;
|
|
|
|
String get productId => _productId;
|
|
|
|
String get skuPrice => _skuPrice;
|
|
|
|
String get applyPrice => _applyPrice;
|
|
|
|
String get vipPrice => _vipPrice;
|
|
|
|
String get packagingFee => _packagingFee;
|
|
|
|
dynamic get skuImg => _skuImg;
|
|
|
|
num get skuStock => _skuStock;
|
|
|
|
num get autoRenewSkuStock => _autoRenewSkuStock;
|
|
|
|
num get deliveries => _deliveries;
|
|
|
|
String get ticketType => _ticketType;
|
|
|
|
dynamic get ticketWipedTimeTemplateId => _ticketWipedTimeTemplateId;
|
|
|
|
dynamic get takeType => _takeType;
|
|
|
|
String get ticketDays => _ticketDays;
|
|
|
|
String get ticketExpireTime => _ticketExpireTime;
|
|
|
|
num get sort => _sort;
|
|
|
|
String get setMeal => _setMeal;
|
|
|
|
List<dynamic> get productSetMeals => _productSetMeals;
|
|
|
|
num get weight => _weight;
|
|
|
|
num get volume => _volume;
|
|
|
|
num get isDelete => _isDelete;
|
|
|
|
dynamic get material => _material;
|
|
|
|
num get version => _version;
|
|
|
|
List<dynamic> get skuTickets => _skuTickets;
|
|
|
|
String get ticketStyle => _ticketStyle;
|
|
|
|
dynamic get skuAttrCodeDTOList => _skuAttrCodeDTOList;
|
|
|
|
List<SkuAttrList> get skuAttrList => _skuAttrList;
|
|
|
|
dynamic get setMealDTOList => _setMealDTOList;
|
|
|
|
String get discountPrice => _discountPrice;
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
final map = <String, dynamic>{};
|
|
|
|
map['id'] = _id;
|
|
|
|
map['createTime'] = _createTime;
|
|
|
|
map['createUser'] = _createUser;
|
|
|
|
map['updateTime'] = _updateTime;
|
|
|
|
map['updateUser'] = _updateUser;
|
|
|
|
map['storeId'] = _storeId;
|
|
|
|
map['skuCode'] = _skuCode;
|
|
|
|
map['skuNameStr'] = _skuNameStr;
|
|
|
|
map['productId'] = _productId;
|
|
|
|
map['skuPrice'] = _skuPrice;
|
|
|
|
map['applyPrice'] = _applyPrice;
|
|
|
|
map['vipPrice'] = _vipPrice;
|
|
|
|
map['packagingFee'] = _packagingFee;
|
|
|
|
map['skuImg'] = _skuImg;
|
|
|
|
map['skuStock'] = _skuStock;
|
|
|
|
map['autoRenewSkuStock'] = _autoRenewSkuStock;
|
|
|
|
map['deliveries'] = _deliveries;
|
|
|
|
map['ticketType'] = _ticketType;
|
|
|
|
map['ticketWipedTimeTemplateId'] = _ticketWipedTimeTemplateId;
|
|
|
|
map['takeType'] = _takeType;
|
|
|
|
map['ticketDays'] = _ticketDays;
|
|
|
|
map['ticketExpireTime'] = _ticketExpireTime;
|
|
|
|
map['sort'] = _sort;
|
|
|
|
map['setMeal'] = _setMeal;
|
|
|
|
if (_productSetMeals != null) {
|
|
|
|
map['productSetMeals'] = _productSetMeals.map((v) => v.toJson()).toList();
|
|
|
|
}
|
|
|
|
map['weight'] = _weight;
|
|
|
|
map['volume'] = _volume;
|
|
|
|
map['isDelete'] = _isDelete;
|
|
|
|
map['material'] = _material;
|
|
|
|
map['version'] = _version;
|
|
|
|
if (_skuTickets != null) {
|
|
|
|
map['skuTickets'] = _skuTickets.map((v) => v.toJson()).toList();
|
|
|
|
}
|
|
|
|
map['ticketStyle'] = _ticketStyle;
|
|
|
|
map['skuAttrCodeDTOList'] = _skuAttrCodeDTOList;
|
|
|
|
if (_skuAttrList != null) {
|
|
|
|
map['skuAttrList'] = _skuAttrList.map((v) => v.toJson()).toList();
|
|
|
|
}
|
|
|
|
map['setMealDTOList'] = _setMealDTOList;
|
|
|
|
map['discountPrice'] = _discountPrice;
|
|
|
|
return map;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
/// id : "1699346530143567872"
|
|
|
|
/// createTime : "2023-09-06 16:59:20"
|
|
|
|
/// createUser : "1684404021814624256"
|
|
|
|
/// updateTime : "2023-09-06 16:59:20"
|
|
|
|
/// updateUser : "1684404021814624256"
|
|
|
|
/// skuId : "1699346530126790656"
|
|
|
|
/// attrId : "1699346530089041920"
|
|
|
|
/// attrValueId : "1699346530101624832"
|
|
|
|
/// sortOrder : null
|
|
|
|
/// isDelete : 0
|
|
|
|
|
|
|
|
class SkuAttrList {
|
|
|
|
SkuAttrList({
|
|
|
|
String id,
|
|
|
|
String createTime,
|
|
|
|
String createUser,
|
|
|
|
String updateTime,
|
|
|
|
String updateUser,
|
|
|
|
String skuId,
|
|
|
|
String attrId,
|
|
|
|
String attrValueId,
|
|
|
|
dynamic sortOrder,
|
|
|
|
num isDelete,}){
|
|
|
|
_id = id;
|
|
|
|
_createTime = createTime;
|
|
|
|
_createUser = createUser;
|
|
|
|
_updateTime = updateTime;
|
|
|
|
_updateUser = updateUser;
|
|
|
|
_skuId = skuId;
|
|
|
|
_attrId = attrId;
|
|
|
|
_attrValueId = attrValueId;
|
|
|
|
_sortOrder = sortOrder;
|
|
|
|
_isDelete = isDelete;
|
|
|
|
}
|
|
|
|
|
|
|
|
SkuAttrList.fromJson(dynamic json) {
|
|
|
|
_id = json['id'];
|
|
|
|
_createTime = json['createTime'];
|
|
|
|
_createUser = json['createUser'];
|
|
|
|
_updateTime = json['updateTime'];
|
|
|
|
_updateUser = json['updateUser'];
|
|
|
|
_skuId = json['skuId'];
|
|
|
|
_attrId = json['attrId'];
|
|
|
|
_attrValueId = json['attrValueId'];
|
|
|
|
_sortOrder = json['sortOrder'];
|
|
|
|
_isDelete = json['isDelete'];
|
|
|
|
}
|
|
|
|
String _id;
|
|
|
|
String _createTime;
|
|
|
|
String _createUser;
|
|
|
|
String _updateTime;
|
|
|
|
String _updateUser;
|
|
|
|
String _skuId;
|
|
|
|
String _attrId;
|
|
|
|
String _attrValueId;
|
|
|
|
dynamic _sortOrder;
|
|
|
|
num _isDelete;
|
|
|
|
SkuAttrList copyWith({ String id,
|
|
|
|
String createTime,
|
|
|
|
String createUser,
|
|
|
|
String updateTime,
|
|
|
|
String updateUser,
|
|
|
|
String skuId,
|
|
|
|
String attrId,
|
|
|
|
String attrValueId,
|
|
|
|
dynamic sortOrder,
|
|
|
|
num isDelete,
|
|
|
|
}) => SkuAttrList( id: id ?? _id,
|
|
|
|
createTime: createTime ?? _createTime,
|
|
|
|
createUser: createUser ?? _createUser,
|
|
|
|
updateTime: updateTime ?? _updateTime,
|
|
|
|
updateUser: updateUser ?? _updateUser,
|
|
|
|
skuId: skuId ?? _skuId,
|
|
|
|
attrId: attrId ?? _attrId,
|
|
|
|
attrValueId: attrValueId ?? _attrValueId,
|
|
|
|
sortOrder: sortOrder ?? _sortOrder,
|
|
|
|
isDelete: isDelete ?? _isDelete,
|
|
|
|
);
|
|
|
|
String get id => _id;
|
|
|
|
String get createTime => _createTime;
|
|
|
|
String get createUser => _createUser;
|
|
|
|
String get updateTime => _updateTime;
|
|
|
|
String get updateUser => _updateUser;
|
|
|
|
String get skuId => _skuId;
|
|
|
|
String get attrId => _attrId;
|
|
|
|
String get attrValueId => _attrValueId;
|
|
|
|
dynamic get sortOrder => _sortOrder;
|
|
|
|
num get isDelete => _isDelete;
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
final map = <String, dynamic>{};
|
|
|
|
map['id'] = _id;
|
|
|
|
map['createTime'] = _createTime;
|
|
|
|
map['createUser'] = _createUser;
|
|
|
|
map['updateTime'] = _updateTime;
|
|
|
|
map['updateUser'] = _updateUser;
|
|
|
|
map['skuId'] = _skuId;
|
|
|
|
map['attrId'] = _attrId;
|
|
|
|
map['attrValueId'] = _attrValueId;
|
|
|
|
map['sortOrder'] = _sortOrder;
|
|
|
|
map['isDelete'] = _isDelete;
|
|
|
|
return map;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|