|
|
|
@ -153,7 +153,8 @@ class ProductVips {
|
|
|
|
|
String info, |
|
|
|
|
num buyCount, |
|
|
|
|
num sellCountLimit, |
|
|
|
|
String vipDiscount,}){ |
|
|
|
|
String vipDiscount, |
|
|
|
|
String tenantCode}){ |
|
|
|
|
_id = id; |
|
|
|
|
_createTime = createTime; |
|
|
|
|
_createUser = createUser; |
|
|
|
@ -193,6 +194,7 @@ class ProductVips {
|
|
|
|
|
_buyCount = buyCount; |
|
|
|
|
_sellCountLimit = sellCountLimit; |
|
|
|
|
_vipDiscount = vipDiscount; |
|
|
|
|
_tenantCode = tenantCode; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
ProductVips.fromJson(dynamic json) { |
|
|
|
@ -235,6 +237,7 @@ class ProductVips {
|
|
|
|
|
_buyCount = json['buyCount']; |
|
|
|
|
_sellCountLimit = json['sellCountLimit']; |
|
|
|
|
_vipDiscount = json['vipDiscount']; |
|
|
|
|
_tenantCode =json['tenantCode']; |
|
|
|
|
} |
|
|
|
|
String _id; |
|
|
|
|
String _createTime; |
|
|
|
@ -275,6 +278,7 @@ class ProductVips {
|
|
|
|
|
num _buyCount; |
|
|
|
|
num _sellCountLimit; |
|
|
|
|
String _vipDiscount; |
|
|
|
|
String _tenantCode; |
|
|
|
|
ProductVips copyWith({ String id, |
|
|
|
|
String createTime, |
|
|
|
|
String createUser, |
|
|
|
@ -314,6 +318,7 @@ ProductVips copyWith({ String id,
|
|
|
|
|
num buyCount, |
|
|
|
|
num sellCountLimit, |
|
|
|
|
String vipDiscount, |
|
|
|
|
String tenantCode, |
|
|
|
|
}) => ProductVips( id: id ?? _id, |
|
|
|
|
createTime: createTime ?? _createTime, |
|
|
|
|
createUser: createUser ?? _createUser, |
|
|
|
@ -353,6 +358,7 @@ ProductVips copyWith({ String id,
|
|
|
|
|
buyCount: buyCount ?? _buyCount, |
|
|
|
|
sellCountLimit: sellCountLimit ?? _sellCountLimit, |
|
|
|
|
vipDiscount: vipDiscount ?? _vipDiscount, |
|
|
|
|
tenantCode:tenantCode ?? _tenantCode, |
|
|
|
|
); |
|
|
|
|
String get id => _id; |
|
|
|
|
String get createTime => _createTime; |
|
|
|
@ -393,6 +399,7 @@ ProductVips copyWith({ String id,
|
|
|
|
|
num get buyCount => _buyCount; |
|
|
|
|
num get sellCountLimit => _sellCountLimit; |
|
|
|
|
String get vipDiscount => _vipDiscount; |
|
|
|
|
String get tenantCode => _tenantCode; |
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() { |
|
|
|
|
final map = <String, dynamic>{}; |
|
|
|
@ -435,6 +442,7 @@ ProductVips copyWith({ String id,
|
|
|
|
|
map['buyCount'] = _buyCount; |
|
|
|
|
map['sellCountLimit'] = _sellCountLimit; |
|
|
|
|
map['vipDiscount'] = _vipDiscount; |
|
|
|
|
map['tenantCode'] = _tenantCode; |
|
|
|
|
return map; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|