|
|
@ -51,6 +51,7 @@ class Goods { |
|
|
|
int state, |
|
|
|
int state, |
|
|
|
bool canPick, |
|
|
|
bool canPick, |
|
|
|
bool canDelivery, |
|
|
|
bool canDelivery, |
|
|
|
|
|
|
|
int buyTimes, |
|
|
|
int isDelete, |
|
|
|
int isDelete, |
|
|
|
dynamic categoryName, |
|
|
|
dynamic categoryName, |
|
|
|
String mainImgPath, |
|
|
|
String mainImgPath, |
|
|
@ -80,6 +81,7 @@ class Goods { |
|
|
|
_canPick = canPick; |
|
|
|
_canPick = canPick; |
|
|
|
_canDelivery = canDelivery; |
|
|
|
_canDelivery = canDelivery; |
|
|
|
_isDelete = isDelete; |
|
|
|
_isDelete = isDelete; |
|
|
|
|
|
|
|
_buyTimes = buyTimes; |
|
|
|
_categoryName = categoryName; |
|
|
|
_categoryName = categoryName; |
|
|
|
_mainImgPath = mainImgPath; |
|
|
|
_mainImgPath = mainImgPath; |
|
|
|
_viceImgPaths = viceImgPaths; |
|
|
|
_viceImgPaths = viceImgPaths; |
|
|
@ -111,6 +113,7 @@ class Goods { |
|
|
|
_canPick = json['canPick']; |
|
|
|
_canPick = json['canPick']; |
|
|
|
_canDelivery = json['canDelivery']; |
|
|
|
_canDelivery = json['canDelivery']; |
|
|
|
_isDelete = json['isDelete']; |
|
|
|
_isDelete = json['isDelete']; |
|
|
|
|
|
|
|
_buyTimes =json['buyTimes']; |
|
|
|
_categoryName = json['categoryName']; |
|
|
|
_categoryName = json['categoryName']; |
|
|
|
_mainImgPath = json['mainImgPath']; |
|
|
|
_mainImgPath = json['mainImgPath']; |
|
|
|
_viceImgPaths = json['viceImgPaths'] != null ? json['viceImgPaths'].cast<String>() : []; |
|
|
|
_viceImgPaths = json['viceImgPaths'] != null ? json['viceImgPaths'].cast<String>() : []; |
|
|
@ -140,6 +143,7 @@ class Goods { |
|
|
|
bool _canPick; |
|
|
|
bool _canPick; |
|
|
|
bool _canDelivery; |
|
|
|
bool _canDelivery; |
|
|
|
int _isDelete; |
|
|
|
int _isDelete; |
|
|
|
|
|
|
|
int _buyTimes; |
|
|
|
dynamic _categoryName; |
|
|
|
dynamic _categoryName; |
|
|
|
String _mainImgPath; |
|
|
|
String _mainImgPath; |
|
|
|
List<String> _viceImgPaths; |
|
|
|
List<String> _viceImgPaths; |
|
|
@ -169,6 +173,7 @@ class Goods { |
|
|
|
bool get canPick => _canPick; |
|
|
|
bool get canPick => _canPick; |
|
|
|
bool get canDelivery => _canDelivery; |
|
|
|
bool get canDelivery => _canDelivery; |
|
|
|
int get isDelete => _isDelete; |
|
|
|
int get isDelete => _isDelete; |
|
|
|
|
|
|
|
int get buyTimes => _buyTimes; |
|
|
|
dynamic get categoryName => _categoryName; |
|
|
|
dynamic get categoryName => _categoryName; |
|
|
|
String get mainImgPath => _mainImgPath; |
|
|
|
String get mainImgPath => _mainImgPath; |
|
|
|
List<String> get viceImgPaths => _viceImgPaths; |
|
|
|
List<String> get viceImgPaths => _viceImgPaths; |
|
|
@ -200,6 +205,7 @@ class Goods { |
|
|
|
map['canPick'] = _canPick; |
|
|
|
map['canPick'] = _canPick; |
|
|
|
map['canDelivery'] = _canDelivery; |
|
|
|
map['canDelivery'] = _canDelivery; |
|
|
|
map['isDelete'] = _isDelete; |
|
|
|
map['isDelete'] = _isDelete; |
|
|
|
|
|
|
|
map['buyTimes'] = _buyTimes; |
|
|
|
map['categoryName'] = _categoryName; |
|
|
|
map['categoryName'] = _categoryName; |
|
|
|
map['mainImgPath'] = _mainImgPath; |
|
|
|
map['mainImgPath'] = _mainImgPath; |
|
|
|
map['viceImgPaths'] = _viceImgPaths; |
|
|
|
map['viceImgPaths'] = _viceImgPaths; |
|
|
|