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.
183 lines
4.3 KiB
183 lines
4.3 KiB
3 years ago
|
|
||
|
class ProductList {
|
||
|
String _id;
|
||
|
String _createTime;
|
||
|
String _createUser;
|
||
|
String _updateTime;
|
||
|
String _updateUser;
|
||
|
dynamic _tenantCode;
|
||
|
String _storeId;
|
||
|
String _orderId;
|
||
|
String _productId;
|
||
|
String _productName;
|
||
|
String _skuId;
|
||
|
String _skuNameStr;
|
||
|
String _skuImg;
|
||
|
int _buyNum;
|
||
|
int _refundNum;
|
||
|
double _weight;
|
||
|
String _applyPrice;
|
||
|
String _sellPrice;
|
||
|
String _postPay;
|
||
|
int _isDelete;
|
||
|
String _discountAmount;
|
||
|
int _discountPercent;
|
||
|
bool _status;
|
||
|
int _batch;
|
||
|
|
||
|
String get id => _id;
|
||
|
|
||
|
String get createTime => _createTime;
|
||
|
|
||
|
String get createUser => _createUser;
|
||
|
|
||
|
String get updateTime => _updateTime;
|
||
|
|
||
|
String get updateUser => _updateUser;
|
||
|
|
||
|
dynamic get tenantCode => _tenantCode;
|
||
|
|
||
|
String get storeId => _storeId;
|
||
|
|
||
|
String get orderId => _orderId;
|
||
|
|
||
|
String get productId => _productId;
|
||
|
|
||
|
String get productName => _productName;
|
||
|
|
||
|
String get skuId => _skuId;
|
||
|
|
||
|
String get skuNameStr => _skuNameStr;
|
||
|
|
||
|
String get skuImg => _skuImg;
|
||
|
|
||
|
int get buyNum => _buyNum;
|
||
|
|
||
|
int get refundNum => _refundNum;
|
||
|
|
||
|
double get weight => _weight;
|
||
|
|
||
|
String get applyPrice => _applyPrice;
|
||
|
|
||
|
String get sellPrice => _sellPrice;
|
||
|
|
||
|
String get postPay => _postPay;
|
||
|
|
||
|
int get isDelete => _isDelete;
|
||
|
|
||
|
String get discountAmount => _discountAmount;
|
||
|
|
||
|
int get discountPercent => _discountPercent;
|
||
|
|
||
|
bool get status => _status;
|
||
|
|
||
|
int get batch => _batch;
|
||
|
|
||
|
ProductList(
|
||
|
{String id,
|
||
|
String createTime,
|
||
|
String createUser,
|
||
|
String updateTime,
|
||
|
String updateUser,
|
||
|
dynamic tenantCode,
|
||
|
String storeId,
|
||
|
String orderId,
|
||
|
String productId,
|
||
|
String productName,
|
||
|
String skuId,
|
||
|
String skuNameStr,
|
||
|
String skuImg,
|
||
|
int buyNum,
|
||
|
int refundNum,
|
||
|
double weight,
|
||
|
String applyPrice,
|
||
|
String sellPrice,
|
||
|
String postPay,
|
||
|
int isDelete,
|
||
|
String discountAmount,
|
||
|
int discountPercent,
|
||
|
bool status,
|
||
|
int batch}) {
|
||
|
_id = id;
|
||
|
_createTime = createTime;
|
||
|
_createUser = createUser;
|
||
|
_updateTime = updateTime;
|
||
|
_updateUser = updateUser;
|
||
|
_tenantCode = tenantCode;
|
||
|
_storeId = storeId;
|
||
|
_orderId = orderId;
|
||
|
_productId = productId;
|
||
|
_productName = productName;
|
||
|
_skuId = skuId;
|
||
|
_skuNameStr = skuNameStr;
|
||
|
_skuImg = skuImg;
|
||
|
_buyNum = buyNum;
|
||
|
_refundNum = refundNum;
|
||
|
_weight = weight;
|
||
|
_applyPrice = applyPrice;
|
||
|
_sellPrice = sellPrice;
|
||
|
_postPay = postPay;
|
||
|
_isDelete = isDelete;
|
||
|
_discountAmount = discountAmount;
|
||
|
_discountPercent = discountPercent;
|
||
|
_status = status;
|
||
|
_batch = batch;
|
||
|
}
|
||
|
|
||
|
ProductList.fromJson(dynamic json) {
|
||
|
_id = json["id"];
|
||
|
_createTime = json["createTime"];
|
||
|
_createUser = json["createUser"];
|
||
|
_updateTime = json["updateTime"];
|
||
|
_updateUser = json["updateUser"];
|
||
|
_tenantCode = json["tenantCode"];
|
||
|
_storeId = json["storeId"];
|
||
|
_orderId = json["orderId"];
|
||
|
_productId = json["productId"];
|
||
|
_productName = json["productName"];
|
||
|
_skuId = json["skuId"];
|
||
|
_skuNameStr = json["skuNameStr"];
|
||
|
_skuImg = json["skuImg"];
|
||
|
_buyNum = json["buyNum"];
|
||
|
_refundNum = json["refundNum"];
|
||
|
_weight = json["weight"];
|
||
|
_applyPrice = json["applyPrice"];
|
||
|
_sellPrice = json["sellPrice"];
|
||
|
_postPay = json["postPay"];
|
||
|
_isDelete = json["isDelete"];
|
||
|
_discountAmount = json["discountAmount"];
|
||
|
_discountPercent = json["discountPercent"];
|
||
|
_status = json["status"];
|
||
|
_batch = json["batch"];
|
||
|
}
|
||
|
|
||
|
Map<String, dynamic> toJson() {
|
||
|
var map = <String, dynamic>{};
|
||
|
map["id"] = _id;
|
||
|
map["createTime"] = _createTime;
|
||
|
map["createUser"] = _createUser;
|
||
|
map["updateTime"] = _updateTime;
|
||
|
map["updateUser"] = _updateUser;
|
||
|
map["tenantCode"] = _tenantCode;
|
||
|
map["storeId"] = _storeId;
|
||
|
map["orderId"] = _orderId;
|
||
|
map["productId"] = _productId;
|
||
|
map["productName"] = _productName;
|
||
|
map["skuId"] = _skuId;
|
||
|
map["skuNameStr"] = _skuNameStr;
|
||
|
map["skuImg"] = _skuImg;
|
||
|
map["buyNum"] = _buyNum;
|
||
|
map["refundNum"] = _refundNum;
|
||
|
map["weight"] = _weight;
|
||
|
map["applyPrice"] = _applyPrice;
|
||
|
map["sellPrice"] = _sellPrice;
|
||
|
map["postPay"] = _postPay;
|
||
|
map["isDelete"] = _isDelete;
|
||
|
map["discountAmount"] = _discountAmount;
|
||
|
map["discountPercent"] = _discountPercent;
|
||
|
map["status"] = _status;
|
||
|
map["batch"] = _batch;
|
||
|
return map;
|
||
|
}
|
||
|
}
|