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.

416 lines
12 KiB

/// id : "1473532263365869568"
/// createTime : "2021-12-22 13:54:03"
/// createUser : "1364043181062094848"
/// updateTime : "2021-12-22 13:54:03"
/// updateUser : "1364043181062094848"
/// supplierName : "测试"
/// storeId : "1364043181120815104"
/// categoryId : "1343391656220557312"
/// groupId : "1473531667711787008"
/// shortName : "可爱"
/// productName : "回乡牛公仔"
/// sellDesc : ""
/// productCode : "PRO202112221354030000000000004"
/// weight : "0"
/// applyPrice : "0.00"
/// price : "49.00"
/// stock : 0
/// sellCount : 0
/// needLogistics : 1
/// oversold : 1
/// organic : 0
/// status : 1
/// posShow : true
/// productType : 0
/// productNumber : 1
/// setMeal : 1
/// attrStyle : 0
/// detail : ""
/// isDelete : 0
/// printerFlag : "DEFAULT"
/// materialId : null
/// imgs : ["https://pos.upload.gznl.top/1179/2021/12/1bff0936-f2a2-401e-befd-e00b416763ad.png"]
/// productSkuList : [{"id":"1473532264519303168","createTime":"2021-12-22 13:54:03","createUser":"1364043181062094848","updateTime":"2021-12-22 13:54:03","updateUser":"1364043181062094848","storeId":"1364043181120815104","skuCode":"P202112221354035","skuNameStr":"","productId":"1473532263365869568","skuPrice":"49.00","applyPrice":"0.00","vipPrice":null,"skuImg":null,"skuStock":0,"sort":50,"setMeal":"","weight":0.0,"volume":0.0,"isDelete":0,"material":null,"version":0}]
class HomeRecommendList {
HomeRecommendList({
String id,
String createTime,
String createUser,
String updateTime,
String updateUser,
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 organic,
int status,
bool posShow,
int productType,
int productNumber,
int setMeal,
int attrStyle,
String detail,
int isDelete,
String printerFlag,
dynamic materialId,
List<String> imgs,
List<ProductSkuList> productSkuList,}){
_id = id;
_createTime = createTime;
_createUser = createUser;
_updateTime = updateTime;
_updateUser = updateUser;
_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;
_organic = organic;
_status = status;
_posShow = posShow;
_productType = productType;
_productNumber = productNumber;
_setMeal = setMeal;
_attrStyle = attrStyle;
_detail = detail;
_isDelete = isDelete;
_printerFlag = printerFlag;
_materialId = materialId;
_imgs = imgs;
_productSkuList = productSkuList;
}
HomeRecommendList.fromJson(dynamic json) {
_id = json['id'];
_createTime = json['createTime'];
_createUser = json['createUser'];
_updateTime = json['updateTime'];
_updateUser = json['updateUser'];
_supplierName = json['supplierName'];
_storeId = json['storeId'];
_categoryId = json['categoryId'];
_groupId = json['groupId'];
_shortName = json['shortName'];
_productName = json['productName'];
_sellDesc = json['sellDesc'];
_productCode = json['productCode'];
_weight = json['weight'];
_applyPrice = json['applyPrice'];
_price = json['price'];
_stock = json['stock'];
_sellCount = json['sellCount'];
_needLogistics = json['needLogistics'];
_oversold = json['oversold'];
_organic = json['organic'];
_status = json['status'];
_posShow = json['posShow'];
_productType = json['productType'];
_productNumber = json['productNumber'];
_setMeal = json['setMeal'];
_attrStyle = json['attrStyle'];
_detail = json['detail'];
_isDelete = json['isDelete'];
_printerFlag = json['printerFlag'];
_materialId = json['materialId'];
_imgs = json['imgs'] != null ? json['imgs'].cast<String>() : [];
if (json['productSkuList'] != null) {
_productSkuList = [];
json['productSkuList'].forEach((v) {
_productSkuList.add(ProductSkuList.fromJson(v));
});
}
}
String _id;
String _createTime;
String _createUser;
String _updateTime;
String _updateUser;
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 _organic;
int _status;
bool _posShow;
int _productType;
int _productNumber;
int _setMeal;
int _attrStyle;
String _detail;
int _isDelete;
String _printerFlag;
dynamic _materialId;
List<String> _imgs;
List<ProductSkuList> _productSkuList;
String get id => _id;
String get createTime => _createTime;
String get createUser => _createUser;
String get updateTime => _updateTime;
String get updateUser => _updateUser;
String get supplierName => _supplierName;
String get storeId => _storeId;
String get categoryId => _categoryId;
String get groupId => _groupId;
String get shortName => _shortName;
String get productName => _productName;
String get sellDesc => _sellDesc;
String get productCode => _productCode;
String get weight => _weight;
String get applyPrice => _applyPrice;
String get price => _price;
int get stock => _stock;
int get sellCount => _sellCount;
int get needLogistics => _needLogistics;
int get oversold => _oversold;
int get organic => _organic;
int get status => _status;
bool get posShow => _posShow;
int get productType => _productType;
int get productNumber => _productNumber;
int get setMeal => _setMeal;
int get attrStyle => _attrStyle;
String get detail => _detail;
int get isDelete => _isDelete;
String get printerFlag => _printerFlag;
dynamic get materialId => _materialId;
List<String> get imgs => _imgs;
List<ProductSkuList> get productSkuList => _productSkuList;
Map<String, dynamic> toJson() {
final map = <String, dynamic>{};
map['id'] = _id;
map['createTime'] = _createTime;
map['createUser'] = _createUser;
map['updateTime'] = _updateTime;
map['updateUser'] = _updateUser;
map['supplierName'] = _supplierName;
map['storeId'] = _storeId;
map['categoryId'] = _categoryId;
map['groupId'] = _groupId;
map['shortName'] = _shortName;
map['productName'] = _productName;
map['sellDesc'] = _sellDesc;
map['productCode'] = _productCode;
map['weight'] = _weight;
map['applyPrice'] = _applyPrice;
map['price'] = _price;
map['stock'] = _stock;
map['sellCount'] = _sellCount;
map['needLogistics'] = _needLogistics;
map['oversold'] = _oversold;
map['organic'] = _organic;
map['status'] = _status;
map['posShow'] = _posShow;
map['productType'] = _productType;
map['productNumber'] = _productNumber;
map['setMeal'] = _setMeal;
map['attrStyle'] = _attrStyle;
map['detail'] = _detail;
map['isDelete'] = _isDelete;
map['printerFlag'] = _printerFlag;
map['materialId'] = _materialId;
map['imgs'] = _imgs;
if (_productSkuList != null) {
map['productSkuList'] = _productSkuList.map((v) => v.toJson()).toList();
}
return map;
}
}
/// id : "1473532264519303168"
/// createTime : "2021-12-22 13:54:03"
/// createUser : "1364043181062094848"
/// updateTime : "2021-12-22 13:54:03"
/// updateUser : "1364043181062094848"
/// storeId : "1364043181120815104"
/// skuCode : "P202112221354035"
/// skuNameStr : ""
/// productId : "1473532263365869568"
/// skuPrice : "49.00"
/// applyPrice : "0.00"
/// vipPrice : null
/// skuImg : null
/// skuStock : 0
/// sort : 50
/// setMeal : ""
/// weight : 0.0
/// volume : 0.0
/// isDelete : 0
/// material : null
/// version : 0
class ProductSkuList {
ProductSkuList({
String id,
String createTime,
String createUser,
String updateTime,
String updateUser,
String storeId,
String skuCode,
String skuNameStr,
String productId,
String skuPrice,
String applyPrice,
dynamic vipPrice,
dynamic skuImg,
int skuStock,
int sort,
String setMeal,
double weight,
double volume,
int isDelete,
dynamic material,
int version,}){
_id = id;
_createTime = createTime;
_createUser = createUser;
_updateTime = updateTime;
_updateUser = updateUser;
_storeId = storeId;
_skuCode = skuCode;
_skuNameStr = skuNameStr;
_productId = productId;
_skuPrice = skuPrice;
_applyPrice = applyPrice;
_vipPrice = vipPrice;
_skuImg = skuImg;
_skuStock = skuStock;
_sort = sort;
_setMeal = setMeal;
_weight = weight;
_volume = volume;
_isDelete = isDelete;
_material = material;
_version = version;
}
ProductSkuList.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'];
_skuImg = json['skuImg'];
_skuStock = json['skuStock'];
_sort = json['sort'];
_setMeal = json['setMeal'];
_weight = json['weight'];
_volume = json['volume'];
_isDelete = json['isDelete'];
_material = json['material'];
_version = json['version'];
}
String _id;
String _createTime;
String _createUser;
String _updateTime;
String _updateUser;
String _storeId;
String _skuCode;
String _skuNameStr;
String _productId;
String _skuPrice;
String _applyPrice;
dynamic _vipPrice;
dynamic _skuImg;
int _skuStock;
int _sort;
String _setMeal;
double _weight;
double _volume;
int _isDelete;
dynamic _material;
int _version;
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;
dynamic get vipPrice => _vipPrice;
dynamic get skuImg => _skuImg;
int get skuStock => _skuStock;
int get sort => _sort;
String get setMeal => _setMeal;
double get weight => _weight;
double get volume => _volume;
int get isDelete => _isDelete;
dynamic get material => _material;
int get version => _version;
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['skuImg'] = _skuImg;
map['skuStock'] = _skuStock;
map['sort'] = _sort;
map['setMeal'] = _setMeal;
map['weight'] = _weight;
map['volume'] = _volume;
map['isDelete'] = _isDelete;
map['material'] = _material;
map['version'] = _version;
return map;
}
}