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.

167 lines
6.8 KiB

3 years ago
/// id : "1435148069191548928"
/// storeId : "1333246101343436800"
/// groupName : "<EFBFBD><EFBFBD>Ʒ<EFBFBD>人"
/// groupImg : "https://pos.upload.gznl.top/1175/2021/09/c9abb054-4509-4f22-9671-6f712ab7e493.webp"
3 years ago
/// sort : 0
/// productList : [{"id":"1440501052276211712","supplierName":"<EFBFBD><EFBFBD><EFBFBD><EFBFBD>","storeId":"1333246101343436800","categoryId":"1300688133322440704","groupId":"1435148069191548928","shortName":"<EFBFBD><EFBFBD><EFBFBD><EFBFBD>","productName":"֧<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>","sellDesc":"","productCode":"PRO202109221019480000000000001","weight":"0","applyPrice":"0.00","price":"0.01","stock":-48,"sellCount":48,"needLogistics":1,"oversold":1,"status":1,"posShow":true,"attrStyle":0,"isDelete":0,"productAttrValues":null,"skuList":null,"imgPathList":null,"buyNum":0,"imgPath":"https://pos.upload.gznl.top/1175/2021/09/ade72b41-23a2-4f29-ae50-4e620b7e9011.webp","setMeal":1,"printerFlag":"DEFAULT","markProductNone":null},{"id":"1435893909921202176","supplierName":"<EFBFBD><EFBFBD><EFBFBD><EFBFBD>","storeId":"1333246101343436800","categoryId":"1300688133322440704","groupId":"1435148069191548928","shortName":"<EFBFBD><EFBFBD><EFBFBD><EFBFBD>","productName":"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>","sellDesc":"","productCode":"PRO202109091712400000000000003","weight":"0","applyPrice":"0.00","price":"9999.00","stock":-10,"sellCount":10,"needLogistics":1,"oversold":1,"status":1,"posShow":true,"attrStyle":0,"isDelete":0,"productAttrValues":null,"skuList":null,"imgPathList":null,"buyNum":0,"imgPath":"https://pos.upload.gznl.top/1175/2021/09/1d212bc1-b952-4aba-a870-8538009da680.webp","setMeal":1,"printerFlag":"DEFAULT","markProductNone":null},{"id":"1435781813317402624","supplierName":"<EFBFBD><EFBFBD>Ͽ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>","storeId":"1333246101343436800","categoryId":"1300688133322440704","groupId":"1435148069191548928","shortName":"ƴ<EFBFBD>̲<EFBFBD><EFBFBD><EFBFBD>","productName":"ƴ<EFBFBD>̲<EFBFBD><EFBFBD><EFBFBD>(<EFBFBD><EFBFBD>ѡ<EFBFBD><EFBFBD>)","sellDesc":"","productCode":"PRO202109090947140000000000001","weight":"0","applyPrice":"0.00","price":"2.00","stock":-15,"sellCount":17,"needLogistics":1,"oversold":1,"status":1,"posShow":true,"attrStyle":0,"isDelete":0,"productAttrValues":null,"skuList":null,"imgPathList":null,"buyNum":0,"imgPath":"https://pos.upload.gznl.top/1175/2021/09/c1412e9a-2c5a-4658-9850-8dde8d1e9321.webp","setMeal":1,"printerFlag":"DEFAULT","markProductNone":null}]
3 years ago
/// productPageVO : null
class FindMiNiGroupList {
String id;
String storeId;
String groupName;
String groupImg;
int sort;
List<ProductListBean> productList;
dynamic productPageVO;
3 years ago
static FindMiNiGroupList fromJson(Map<String, dynamic> map) {
3 years ago
if (map == null) return null;
FindMiNiGroupList findMiNiGroupListBean = FindMiNiGroupList();
findMiNiGroupListBean.id = map['id'];
findMiNiGroupListBean.storeId = map['storeId'];
findMiNiGroupListBean.groupName = map['groupName'];
findMiNiGroupListBean.groupImg = map['groupImg'];
findMiNiGroupListBean.sort = map['sort'];
3 years ago
findMiNiGroupListBean.productList = []..addAll(
3 years ago
(map['productList'] as List ?? []).map((o) => ProductListBean.fromJson(o))
3 years ago
);
findMiNiGroupListBean.productPageVO = map['productPageVO'];
return findMiNiGroupListBean;
}
Map toJson() => {
"id": id,
"storeId": storeId,
"groupName": groupName,
"groupImg": groupImg,
"sort": sort,
"productList": productList,
"productPageVO": productPageVO,
};
}
/// id : "1440501052276211712"
/// supplierName : "<EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
/// storeId : "1333246101343436800"
/// categoryId : "1300688133322440704"
/// groupId : "1435148069191548928"
/// shortName : "<EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
/// productName : "֧<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
/// sellDesc : ""
/// productCode : "PRO202109221019480000000000001"
/// weight : "0"
/// applyPrice : "0.00"
/// price : "0.01"
/// stock : -48
/// sellCount : 48
/// needLogistics : 1
/// oversold : 1
/// status : 1
/// posShow : true
/// attrStyle : 0
/// isDelete : 0
/// productAttrValues : null
/// skuList : null
/// imgPathList : null
/// buyNum : 0
/// imgPath : "https://pos.upload.gznl.top/1175/2021/09/ade72b41-23a2-4f29-ae50-4e620b7e9011.webp"
3 years ago
/// setMeal : 1
/// printerFlag : "DEFAULT"
/// markProductNone : null
class ProductListBean {
String id;
String supplierName;
String storeId;
String categoryId;
String groupId;
String shortName;
String productName;
String sellDesc;
String productCode;
String weight;
String applyPrice;
String price;
int stock;
int sellCount;
int needLogistics;
int oversold;
int status;
bool posShow;
int attrStyle;
int isDelete;
dynamic productAttrValues;
dynamic skuList;
dynamic imgPathList;
int buyNum;
String imgPath;
int setMeal;
String printerFlag;
dynamic markProductNone;
3 years ago
static ProductListBean fromJson(Map<String, dynamic> map) {
3 years ago
if (map == null) return null;
ProductListBean productListBean = ProductListBean();
productListBean.id = map['id'];
productListBean.supplierName = map['supplierName'];
productListBean.storeId = map['storeId'];
productListBean.categoryId = map['categoryId'];
productListBean.groupId = map['groupId'];
productListBean.shortName = map['shortName'];
productListBean.productName = map['productName'];
productListBean.sellDesc = map['sellDesc'];
productListBean.productCode = map['productCode'];
productListBean.weight = map['weight'];
productListBean.applyPrice = map['applyPrice'];
productListBean.price = map['price'];
productListBean.stock = map['stock'];
productListBean.sellCount = map['sellCount'];
productListBean.needLogistics = map['needLogistics'];
productListBean.oversold = map['oversold'];
productListBean.status = map['status'];
productListBean.posShow = map['posShow'];
productListBean.attrStyle = map['attrStyle'];
productListBean.isDelete = map['isDelete'];
productListBean.productAttrValues = map['productAttrValues'];
productListBean.skuList = map['skuList'];
productListBean.imgPathList = map['imgPathList'];
productListBean.buyNum = map['buyNum'];
productListBean.imgPath = map['imgPath'];
productListBean.setMeal = map['setMeal'];
productListBean.printerFlag = map['printerFlag'];
productListBean.markProductNone = map['markProductNone'];
return productListBean;
}
Map toJson() => {
"id": id,
"supplierName": supplierName,
"storeId": storeId,
"categoryId": categoryId,
"groupId": groupId,
"shortName": shortName,
"productName": productName,
"sellDesc": sellDesc,
"productCode": productCode,
"weight": weight,
"applyPrice": applyPrice,
"price": price,
"stock": stock,
"sellCount": sellCount,
"needLogistics": needLogistics,
"oversold": oversold,
"status": status,
"posShow": posShow,
"attrStyle": attrStyle,
"isDelete": isDelete,
"productAttrValues": productAttrValues,
"skuList": skuList,
"imgPathList": imgPathList,
"buyNum": buyNum,
"imgPath": imgPath,
"setMeal": setMeal,
"printerFlag": printerFlag,
"markProductNone": markProductNone,
};
}