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.
615 lines
17 KiB
615 lines
17 KiB
2 years ago
|
/// goodList : [{"productImg":"https://pos.upload.lotus-wallet.com/1178/2022/04/7dfa5c3e-b23e-4424-b886-f1dbb4f15ba1.jpg","productSkuVOList":[{"ticketStyle":"","productId":"1517366419690356736","isDelete":0,"ticketDays":"0","setMeal":"","updateUser":"1347839370706550784","skuPrice":"8.00","skuStock":1,"weight":0,"updateTime":"2022-04-22 12:55:20","ticketType":"","sort":50,"storeId":"1347853925696405504","version":0,"deliveries":0,"volume":0,"autoRenewSkuStock":0,"skuNameStr":"份","createTime":"2022-04-22 12:55:20","createUser":"1347839370706550784","id":"1517366419740688384","applyPrice":"8.00","skuAttrList":[{"attrValueId":"1517366419723911168","isDelete":0,"updateUser":"1347839370706550784","updateTime":"2022-04-22 12:55:20","attrId":"1517366419715522560","createTime":"2022-04-22 12:55:20","createUser":"1347839370706550784","id":"1517366419753271296","skuId":"1517366419740688384"}],"skuCode":"P202204221255202"}],"thumbnailImg":"https://pos.upload.lotus-wallet.com/1178/2022/06/9295bf3f-9d8b-4d5c-857e-4f80327ddc74.jpg","tenantCode":"1178","storeId":"1347853925696405504","productName":"苋菜","posShow":false,"price":"8.00","sellCount":27,"details":"","id":"1517366419690356736","applyPrice":"8.00","stock":1,"status":0,"info":""}]
|
||
|
/// typeName : "蔬菜宅配"
|
||
|
|
||
|
class FarmersList {
|
||
|
FarmersList({
|
||
|
List<GoodList> goodList,
|
||
|
String typeName,
|
||
|
String agriculturaListImg,
|
||
|
}) {
|
||
|
_goodList = goodList;
|
||
|
_typeName = typeName;
|
||
|
_agriculturaListImg = agriculturaListImg;
|
||
|
}
|
||
|
|
||
|
FarmersList.fromJson(dynamic json) {
|
||
|
if (json['goodList'] != null) {
|
||
|
_goodList = [];
|
||
|
json['goodList'].forEach((v) {
|
||
|
_goodList.add(GoodList.fromJson(v));
|
||
|
});
|
||
|
}
|
||
|
_typeName = json['typeName'];
|
||
|
_agriculturaListImg = json['agriculturaListImg'];
|
||
|
}
|
||
|
|
||
|
List<GoodList> _goodList;
|
||
|
String _typeName;
|
||
|
String _agriculturaListImg;
|
||
|
|
||
|
FarmersList copyWith({
|
||
|
List<GoodList> goodList,
|
||
|
String typeName,
|
||
|
String agriculturaListImg,
|
||
|
}) =>
|
||
|
FarmersList(
|
||
|
goodList: goodList ?? _goodList,
|
||
|
typeName: typeName ?? _typeName,
|
||
|
agriculturaListImg: agriculturaListImg ?? _agriculturaListImg,
|
||
|
);
|
||
|
|
||
|
List<GoodList> get goodList => _goodList;
|
||
|
|
||
|
String get typeName => _typeName;
|
||
|
|
||
|
String get agriculturaListImg => _agriculturaListImg;
|
||
|
|
||
|
Map<String, dynamic> toJson() {
|
||
|
final map = <String, dynamic>{};
|
||
|
if (_goodList != null) {
|
||
|
map['goodList'] = _goodList.map((v) => v.toJson()).toList();
|
||
|
}
|
||
|
map['typeName'] = _typeName;
|
||
|
map['agriculturaListImg'] = _agriculturaListImg;
|
||
|
return map;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/// productImg : "https://pos.upload.lotus-wallet.com/1178/2022/04/7dfa5c3e-b23e-4424-b886-f1dbb4f15ba1.jpg"
|
||
|
/// productSkuVOList : [{"ticketStyle":"","productId":"1517366419690356736","isDelete":0,"ticketDays":"0","setMeal":"","updateUser":"1347839370706550784","skuPrice":"8.00","skuStock":1,"weight":0,"updateTime":"2022-04-22 12:55:20","ticketType":"","sort":50,"storeId":"1347853925696405504","version":0,"deliveries":0,"volume":0,"autoRenewSkuStock":0,"skuNameStr":"份","createTime":"2022-04-22 12:55:20","createUser":"1347839370706550784","id":"1517366419740688384","applyPrice":"8.00","skuAttrList":[{"attrValueId":"1517366419723911168","isDelete":0,"updateUser":"1347839370706550784","updateTime":"2022-04-22 12:55:20","attrId":"1517366419715522560","createTime":"2022-04-22 12:55:20","createUser":"1347839370706550784","id":"1517366419753271296","skuId":"1517366419740688384"}],"skuCode":"P202204221255202"}]
|
||
|
/// thumbnailImg : "https://pos.upload.lotus-wallet.com/1178/2022/06/9295bf3f-9d8b-4d5c-857e-4f80327ddc74.jpg"
|
||
|
/// tenantCode : "1178"
|
||
|
/// storeId : "1347853925696405504"
|
||
|
/// productName : "苋菜"
|
||
|
/// posShow : false
|
||
|
/// price : "8.00"
|
||
|
/// sellCount : 27
|
||
|
/// details : ""
|
||
|
/// id : "1517366419690356736"
|
||
|
/// applyPrice : "8.00"
|
||
|
/// stock : 1
|
||
|
/// status : 0
|
||
|
/// info : ""
|
||
|
|
||
|
class GoodList {
|
||
|
GoodList({
|
||
|
String productImg,
|
||
|
List<ProductSkuVoList> productSkuVOList,
|
||
|
String thumbnailImg,
|
||
|
String tenantCode,
|
||
|
String storeId,
|
||
|
String productName,
|
||
|
bool posShow,
|
||
|
String price,
|
||
|
num sellCount,
|
||
|
String details,
|
||
|
String id,
|
||
|
String applyPrice,
|
||
|
dynamic stock,
|
||
|
dynamic status,
|
||
|
String info,
|
||
|
}) {
|
||
|
_productImg = productImg;
|
||
|
_productSkuVOList = productSkuVOList;
|
||
|
_thumbnailImg = thumbnailImg;
|
||
|
_tenantCode = tenantCode;
|
||
|
_storeId = storeId;
|
||
|
_productName = productName;
|
||
|
_posShow = posShow;
|
||
|
_price = price;
|
||
|
_sellCount = sellCount;
|
||
|
_details = details;
|
||
|
_id = id;
|
||
|
_applyPrice = applyPrice;
|
||
|
_stock = stock;
|
||
|
_status = status;
|
||
|
_info = info;
|
||
|
}
|
||
|
|
||
|
GoodList.fromJson(dynamic json) {
|
||
|
_productImg = json['productImg'];
|
||
|
if (json['productSkuVOList'] != null) {
|
||
|
_productSkuVOList = [];
|
||
|
json['productSkuVOList'].forEach((v) {
|
||
|
_productSkuVOList.add(ProductSkuVoList.fromJson(v));
|
||
|
});
|
||
|
}
|
||
|
_thumbnailImg = json['thumbnailImg'];
|
||
|
_tenantCode = json['tenantCode'];
|
||
|
_storeId = json['storeId'];
|
||
|
_productName = json['productName'];
|
||
|
_posShow = json['posShow'];
|
||
|
_price = json['price'];
|
||
|
_sellCount = json['sellCount'];
|
||
|
_details = json['details'];
|
||
|
_id = json['id'];
|
||
|
_applyPrice = json['applyPrice'];
|
||
|
_stock = json['stock'];
|
||
|
_status = json['status'];
|
||
|
_info = json['info'];
|
||
|
}
|
||
|
|
||
|
String _productImg;
|
||
|
List<ProductSkuVoList> _productSkuVOList;
|
||
|
String _thumbnailImg;
|
||
|
String _tenantCode;
|
||
|
String _storeId;
|
||
|
String _productName;
|
||
|
bool _posShow;
|
||
|
String _price;
|
||
|
num _sellCount;
|
||
|
String _details;
|
||
|
String _id;
|
||
|
String _applyPrice;
|
||
|
dynamic _stock;
|
||
|
dynamic _status;
|
||
|
String _info;
|
||
|
|
||
|
GoodList copyWith({
|
||
|
String productImg,
|
||
|
List<ProductSkuVoList> productSkuVOList,
|
||
|
String thumbnailImg,
|
||
|
String tenantCode,
|
||
|
String storeId,
|
||
|
String productName,
|
||
|
bool posShow,
|
||
|
String price,
|
||
|
num sellCount,
|
||
|
String details,
|
||
|
String id,
|
||
|
String applyPrice,
|
||
|
dynamic stock,
|
||
|
dynamic status,
|
||
|
String info,
|
||
|
}) =>
|
||
|
GoodList(
|
||
|
productImg: productImg ?? _productImg,
|
||
|
productSkuVOList: productSkuVOList ?? _productSkuVOList,
|
||
|
thumbnailImg: thumbnailImg ?? _thumbnailImg,
|
||
|
tenantCode: tenantCode ?? _tenantCode,
|
||
|
storeId: storeId ?? _storeId,
|
||
|
productName: productName ?? _productName,
|
||
|
posShow: posShow ?? _posShow,
|
||
|
price: price ?? _price,
|
||
|
sellCount: sellCount ?? _sellCount,
|
||
|
details: details ?? _details,
|
||
|
id: id ?? _id,
|
||
|
applyPrice: applyPrice ?? _applyPrice,
|
||
|
stock: stock ?? _stock,
|
||
|
status: status ?? _status,
|
||
|
info: info ?? _info,
|
||
|
);
|
||
|
|
||
|
String get productImg => _productImg;
|
||
|
|
||
|
List<ProductSkuVoList> get productSkuVOList => _productSkuVOList;
|
||
|
|
||
|
String get thumbnailImg => _thumbnailImg;
|
||
|
|
||
|
String get tenantCode => _tenantCode;
|
||
|
|
||
|
String get storeId => _storeId;
|
||
|
|
||
|
String get productName => _productName;
|
||
|
|
||
|
bool get posShow => _posShow;
|
||
|
|
||
|
String get price => _price;
|
||
|
|
||
|
num get sellCount => _sellCount;
|
||
|
|
||
|
String get details => _details;
|
||
|
|
||
|
String get id => _id;
|
||
|
|
||
|
String get applyPrice => _applyPrice;
|
||
|
|
||
|
dynamic get stock => _stock;
|
||
|
|
||
|
dynamic get status => _status;
|
||
|
|
||
|
String get info => _info;
|
||
|
|
||
|
Map<String, dynamic> toJson() {
|
||
|
final map = <String, dynamic>{};
|
||
|
map['productImg'] = _productImg;
|
||
|
if (_productSkuVOList != null) {
|
||
|
map['productSkuVOList'] =
|
||
|
_productSkuVOList.map((v) => v.toJson()).toList();
|
||
|
}
|
||
|
map['thumbnailImg'] = _thumbnailImg;
|
||
|
map['tenantCode'] = _tenantCode;
|
||
|
map['storeId'] = _storeId;
|
||
|
map['productName'] = _productName;
|
||
|
map['posShow'] = _posShow;
|
||
|
map['price'] = _price;
|
||
|
map['sellCount'] = _sellCount;
|
||
|
map['details'] = _details;
|
||
|
map['id'] = _id;
|
||
|
map['applyPrice'] = _applyPrice;
|
||
|
map['stock'] = _stock;
|
||
|
map['status'] = _status;
|
||
|
map['info'] = _info;
|
||
|
return map;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/// ticketStyle : ""
|
||
|
/// productId : "1517366419690356736"
|
||
|
/// isDelete : 0
|
||
|
/// ticketDays : "0"
|
||
|
/// setMeal : ""
|
||
|
/// updateUser : "1347839370706550784"
|
||
|
/// skuPrice : "8.00"
|
||
|
/// skuStock : 1
|
||
|
/// weight : 0
|
||
|
/// updateTime : "2022-04-22 12:55:20"
|
||
|
/// ticketType : ""
|
||
|
/// sort : 50
|
||
|
/// storeId : "1347853925696405504"
|
||
|
/// version : 0
|
||
|
/// deliveries : 0
|
||
|
/// volume : 0
|
||
|
/// autoRenewSkuStock : 0
|
||
|
/// skuNameStr : "份"
|
||
|
/// createTime : "2022-04-22 12:55:20"
|
||
|
/// createUser : "1347839370706550784"
|
||
|
/// id : "1517366419740688384"
|
||
|
/// applyPrice : "8.00"
|
||
|
/// skuAttrList : [{"attrValueId":"1517366419723911168","isDelete":0,"updateUser":"1347839370706550784","updateTime":"2022-04-22 12:55:20","attrId":"1517366419715522560","createTime":"2022-04-22 12:55:20","createUser":"1347839370706550784","id":"1517366419753271296","skuId":"1517366419740688384"}]
|
||
|
/// skuCode : "P202204221255202"
|
||
|
|
||
|
class ProductSkuVoList {
|
||
|
ProductSkuVoList({
|
||
|
String ticketStyle,
|
||
|
String productId,
|
||
|
num isDelete,
|
||
|
String ticketDays,
|
||
|
String setMeal,
|
||
|
String updateUser,
|
||
|
String skuPrice,
|
||
|
num skuStock,
|
||
|
num weight,
|
||
|
String updateTime,
|
||
|
String ticketType,
|
||
|
num sort,
|
||
|
String storeId,
|
||
|
num version,
|
||
|
num deliveries,
|
||
|
num volume,
|
||
|
num autoRenewSkuStock,
|
||
|
String skuNameStr,
|
||
|
String createTime,
|
||
|
String createUser,
|
||
|
String id,
|
||
|
String applyPrice,
|
||
|
List<SkuAttrList> skuAttrList,
|
||
|
String skuCode,
|
||
|
}) {
|
||
|
_ticketStyle = ticketStyle;
|
||
|
_productId = productId;
|
||
|
_isDelete = isDelete;
|
||
|
_ticketDays = ticketDays;
|
||
|
_setMeal = setMeal;
|
||
|
_updateUser = updateUser;
|
||
|
_skuPrice = skuPrice;
|
||
|
_skuStock = skuStock;
|
||
|
_weight = weight;
|
||
|
_updateTime = updateTime;
|
||
|
_ticketType = ticketType;
|
||
|
_sort = sort;
|
||
|
_storeId = storeId;
|
||
|
_version = version;
|
||
|
_deliveries = deliveries;
|
||
|
_volume = volume;
|
||
|
_autoRenewSkuStock = autoRenewSkuStock;
|
||
|
_skuNameStr = skuNameStr;
|
||
|
_createTime = createTime;
|
||
|
_createUser = createUser;
|
||
|
_id = id;
|
||
|
_applyPrice = applyPrice;
|
||
|
_skuAttrList = skuAttrList;
|
||
|
_skuCode = skuCode;
|
||
|
}
|
||
|
|
||
|
ProductSkuVoList.fromJson(dynamic json) {
|
||
|
_ticketStyle = json['ticketStyle'];
|
||
|
_productId = json['productId'];
|
||
|
_isDelete = json['isDelete'];
|
||
|
_ticketDays = json['ticketDays'];
|
||
|
_setMeal = json['setMeal'];
|
||
|
_updateUser = json['updateUser'];
|
||
|
_skuPrice = json['skuPrice'];
|
||
|
_skuStock = json['skuStock'];
|
||
|
_weight = json['weight'];
|
||
|
_updateTime = json['updateTime'];
|
||
|
_ticketType = json['ticketType'];
|
||
|
_sort = json['sort'];
|
||
|
_storeId = json['storeId'];
|
||
|
_version = json['version'];
|
||
|
_deliveries = json['deliveries'];
|
||
|
_volume = json['volume'];
|
||
|
_autoRenewSkuStock = json['autoRenewSkuStock'];
|
||
|
_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 _ticketStyle;
|
||
|
String _productId;
|
||
|
num _isDelete;
|
||
|
String _ticketDays;
|
||
|
String _setMeal;
|
||
|
String _updateUser;
|
||
|
String _skuPrice;
|
||
|
num _skuStock;
|
||
|
num _weight;
|
||
|
String _updateTime;
|
||
|
String _ticketType;
|
||
|
num _sort;
|
||
|
String _storeId;
|
||
|
num _version;
|
||
|
num _deliveries;
|
||
|
num _volume;
|
||
|
num _autoRenewSkuStock;
|
||
|
String _skuNameStr;
|
||
|
String _createTime;
|
||
|
String _createUser;
|
||
|
String _id;
|
||
|
String _applyPrice;
|
||
|
List<SkuAttrList> _skuAttrList;
|
||
|
String _skuCode;
|
||
|
|
||
|
ProductSkuVoList copyWith({
|
||
|
String ticketStyle,
|
||
|
String productId,
|
||
|
num isDelete,
|
||
|
String ticketDays,
|
||
|
String setMeal,
|
||
|
String updateUser,
|
||
|
String skuPrice,
|
||
|
num skuStock,
|
||
|
num weight,
|
||
|
String updateTime,
|
||
|
String ticketType,
|
||
|
num sort,
|
||
|
String storeId,
|
||
|
num version,
|
||
|
num deliveries,
|
||
|
num volume,
|
||
|
num autoRenewSkuStock,
|
||
|
String skuNameStr,
|
||
|
String createTime,
|
||
|
String createUser,
|
||
|
String id,
|
||
|
String applyPrice,
|
||
|
List<SkuAttrList> skuAttrList,
|
||
|
String skuCode,
|
||
|
}) =>
|
||
|
ProductSkuVoList(
|
||
|
ticketStyle: ticketStyle ?? _ticketStyle,
|
||
|
productId: productId ?? _productId,
|
||
|
isDelete: isDelete ?? _isDelete,
|
||
|
ticketDays: ticketDays ?? _ticketDays,
|
||
|
setMeal: setMeal ?? _setMeal,
|
||
|
updateUser: updateUser ?? _updateUser,
|
||
|
skuPrice: skuPrice ?? _skuPrice,
|
||
|
skuStock: skuStock ?? _skuStock,
|
||
|
weight: weight ?? _weight,
|
||
|
updateTime: updateTime ?? _updateTime,
|
||
|
ticketType: ticketType ?? _ticketType,
|
||
|
sort: sort ?? _sort,
|
||
|
storeId: storeId ?? _storeId,
|
||
|
version: version ?? _version,
|
||
|
deliveries: deliveries ?? _deliveries,
|
||
|
volume: volume ?? _volume,
|
||
|
autoRenewSkuStock: autoRenewSkuStock ?? _autoRenewSkuStock,
|
||
|
skuNameStr: skuNameStr ?? _skuNameStr,
|
||
|
createTime: createTime ?? _createTime,
|
||
|
createUser: createUser ?? _createUser,
|
||
|
id: id ?? _id,
|
||
|
applyPrice: applyPrice ?? _applyPrice,
|
||
|
skuAttrList: skuAttrList ?? _skuAttrList,
|
||
|
skuCode: skuCode ?? _skuCode,
|
||
|
);
|
||
|
|
||
|
String get ticketStyle => _ticketStyle;
|
||
|
|
||
|
String get productId => _productId;
|
||
|
|
||
|
num get isDelete => _isDelete;
|
||
|
|
||
|
String get ticketDays => _ticketDays;
|
||
|
|
||
|
String get setMeal => _setMeal;
|
||
|
|
||
|
String get updateUser => _updateUser;
|
||
|
|
||
|
String get skuPrice => _skuPrice;
|
||
|
|
||
|
num get skuStock => _skuStock;
|
||
|
|
||
|
num get weight => _weight;
|
||
|
|
||
|
String get updateTime => _updateTime;
|
||
|
|
||
|
String get ticketType => _ticketType;
|
||
|
|
||
|
num get sort => _sort;
|
||
|
|
||
|
String get storeId => _storeId;
|
||
|
|
||
|
num get version => _version;
|
||
|
|
||
|
num get deliveries => _deliveries;
|
||
|
|
||
|
num get volume => _volume;
|
||
|
|
||
|
num get autoRenewSkuStock => _autoRenewSkuStock;
|
||
|
|
||
|
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['ticketStyle'] = _ticketStyle;
|
||
|
map['productId'] = _productId;
|
||
|
map['isDelete'] = _isDelete;
|
||
|
map['ticketDays'] = _ticketDays;
|
||
|
map['setMeal'] = _setMeal;
|
||
|
map['updateUser'] = _updateUser;
|
||
|
map['skuPrice'] = _skuPrice;
|
||
|
map['skuStock'] = _skuStock;
|
||
|
map['weight'] = _weight;
|
||
|
map['updateTime'] = _updateTime;
|
||
|
map['ticketType'] = _ticketType;
|
||
|
map['sort'] = _sort;
|
||
|
map['storeId'] = _storeId;
|
||
|
map['version'] = _version;
|
||
|
map['deliveries'] = _deliveries;
|
||
|
map['volume'] = _volume;
|
||
|
map['autoRenewSkuStock'] = _autoRenewSkuStock;
|
||
|
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 : "1517366419723911168"
|
||
|
/// isDelete : 0
|
||
|
/// updateUser : "1347839370706550784"
|
||
|
/// updateTime : "2022-04-22 12:55:20"
|
||
|
/// attrId : "1517366419715522560"
|
||
|
/// createTime : "2022-04-22 12:55:20"
|
||
|
/// createUser : "1347839370706550784"
|
||
|
/// id : "1517366419753271296"
|
||
|
/// skuId : "1517366419740688384"
|
||
|
|
||
|
class SkuAttrList {
|
||
|
SkuAttrList({
|
||
|
String attrValueId,
|
||
|
num 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;
|
||
|
num _isDelete;
|
||
|
String _updateUser;
|
||
|
String _updateTime;
|
||
|
String _attrId;
|
||
|
String _createTime;
|
||
|
String _createUser;
|
||
|
String _id;
|
||
|
String _skuId;
|
||
|
|
||
|
SkuAttrList copyWith({
|
||
|
String attrValueId,
|
||
|
num isDelete,
|
||
|
String updateUser,
|
||
|
String updateTime,
|
||
|
String attrId,
|
||
|
String createTime,
|
||
|
String createUser,
|
||
|
String id,
|
||
|
String skuId,
|
||
|
}) =>
|
||
|
SkuAttrList(
|
||
|
attrValueId: attrValueId ?? _attrValueId,
|
||
|
isDelete: isDelete ?? _isDelete,
|
||
|
updateUser: updateUser ?? _updateUser,
|
||
|
updateTime: updateTime ?? _updateTime,
|
||
|
attrId: attrId ?? _attrId,
|
||
|
createTime: createTime ?? _createTime,
|
||
|
createUser: createUser ?? _createUser,
|
||
|
id: id ?? _id,
|
||
|
skuId: skuId ?? _skuId,
|
||
|
);
|
||
|
|
||
|
String get attrValueId => _attrValueId;
|
||
|
|
||
|
num 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;
|
||
|
}
|
||
|
}
|