|
|
@ -83,7 +83,7 @@ class MiNiDetail { |
|
|
|
dynamic namePinyin; |
|
|
|
dynamic namePinyin; |
|
|
|
dynamic nameInitials; |
|
|
|
dynamic nameInitials; |
|
|
|
|
|
|
|
|
|
|
|
static MiNiDetail fromMap(Map<String, dynamic> map) { |
|
|
|
static MiNiDetail fromJon(Map<String, dynamic> map) { |
|
|
|
if (map == null) return null; |
|
|
|
if (map == null) return null; |
|
|
|
MiNiDetail miNiDetailBean = MiNiDetail(); |
|
|
|
MiNiDetail miNiDetailBean = MiNiDetail(); |
|
|
|
miNiDetailBean.id = map['id']; |
|
|
|
miNiDetailBean.id = map['id']; |
|
|
@ -118,12 +118,12 @@ class MiNiDetail { |
|
|
|
miNiDetailBean.imgs = List()..addAll( |
|
|
|
miNiDetailBean.imgs = List()..addAll( |
|
|
|
(map['imgs'] as List ?? []).map((o) => o.toString()) |
|
|
|
(map['imgs'] as List ?? []).map((o) => o.toString()) |
|
|
|
); |
|
|
|
); |
|
|
|
miNiDetailBean.storeDTO = StoreDTOBean.fromMap(map['storeDTO']); |
|
|
|
miNiDetailBean.storeDTO = StoreDTOBean.fromJon(map['storeDTO']); |
|
|
|
miNiDetailBean.attrList = List()..addAll( |
|
|
|
miNiDetailBean.attrList = List()..addAll( |
|
|
|
(map['attrList'] as List ?? []).map((o) => AttrListBean.fromMap(o)) |
|
|
|
(map['attrList'] as List ?? []).map((o) => AttrListBean.fromJon(o)) |
|
|
|
); |
|
|
|
); |
|
|
|
miNiDetailBean.productSkuVOList = List()..addAll( |
|
|
|
miNiDetailBean.productSkuVOList = List()..addAll( |
|
|
|
(map['productSkuVOList'] as List ?? []).map((o) => ProductSkuVOListBean.fromMap(o)) |
|
|
|
(map['productSkuVOList'] as List ?? []).map((o) => ProductSkuVOListBean.fromJon(o)) |
|
|
|
); |
|
|
|
); |
|
|
|
miNiDetailBean.shipAddress = map['shipAddress']; |
|
|
|
miNiDetailBean.shipAddress = map['shipAddress']; |
|
|
|
miNiDetailBean.buyCount = map['buyCount']; |
|
|
|
miNiDetailBean.buyCount = map['buyCount']; |
|
|
@ -232,7 +232,7 @@ class ProductSkuVOListBean { |
|
|
|
List<SkuAttrListBean> skuAttrList; |
|
|
|
List<SkuAttrListBean> skuAttrList; |
|
|
|
dynamic setMealDTOList; |
|
|
|
dynamic setMealDTOList; |
|
|
|
|
|
|
|
|
|
|
|
static ProductSkuVOListBean fromMap(Map<String, dynamic> map) { |
|
|
|
static ProductSkuVOListBean fromJon(Map<String, dynamic> map) { |
|
|
|
if (map == null) return null; |
|
|
|
if (map == null) return null; |
|
|
|
ProductSkuVOListBean productSkuVOListBean = ProductSkuVOListBean(); |
|
|
|
ProductSkuVOListBean productSkuVOListBean = ProductSkuVOListBean(); |
|
|
|
productSkuVOListBean.id = map['id']; |
|
|
|
productSkuVOListBean.id = map['id']; |
|
|
@ -258,7 +258,7 @@ class ProductSkuVOListBean { |
|
|
|
productSkuVOListBean.version = map['version']; |
|
|
|
productSkuVOListBean.version = map['version']; |
|
|
|
productSkuVOListBean.skuAttrCodeDTOList = map['skuAttrCodeDTOList']; |
|
|
|
productSkuVOListBean.skuAttrCodeDTOList = map['skuAttrCodeDTOList']; |
|
|
|
productSkuVOListBean.skuAttrList = List()..addAll( |
|
|
|
productSkuVOListBean.skuAttrList = List()..addAll( |
|
|
|
(map['skuAttrList'] as List ?? []).map((o) => SkuAttrListBean.fromMap(o)) |
|
|
|
(map['skuAttrList'] as List ?? []).map((o) => SkuAttrListBean.fromJon(o)) |
|
|
|
); |
|
|
|
); |
|
|
|
productSkuVOListBean.setMealDTOList = map['setMealDTOList']; |
|
|
|
productSkuVOListBean.setMealDTOList = map['setMealDTOList']; |
|
|
|
return productSkuVOListBean; |
|
|
|
return productSkuVOListBean; |
|
|
@ -315,7 +315,7 @@ class SkuAttrListBean { |
|
|
|
dynamic sortOrder; |
|
|
|
dynamic sortOrder; |
|
|
|
int isDelete; |
|
|
|
int isDelete; |
|
|
|
|
|
|
|
|
|
|
|
static SkuAttrListBean fromMap(Map<String, dynamic> map) { |
|
|
|
static SkuAttrListBean fromJon(Map<String, dynamic> map) { |
|
|
|
if (map == null) return null; |
|
|
|
if (map == null) return null; |
|
|
|
SkuAttrListBean skuAttrListBean = SkuAttrListBean(); |
|
|
|
SkuAttrListBean skuAttrListBean = SkuAttrListBean(); |
|
|
|
skuAttrListBean.id = map['id']; |
|
|
|
skuAttrListBean.id = map['id']; |
|
|
@ -364,7 +364,7 @@ class AttrListBean { |
|
|
|
String id; |
|
|
|
String id; |
|
|
|
List<AttrValueListBean> attrValueList; |
|
|
|
List<AttrValueListBean> attrValueList; |
|
|
|
|
|
|
|
|
|
|
|
static AttrListBean fromMap(Map<String, dynamic> map) { |
|
|
|
static AttrListBean fromJon(Map<String, dynamic> map) { |
|
|
|
if (map == null) return null; |
|
|
|
if (map == null) return null; |
|
|
|
AttrListBean attrListBean = AttrListBean(); |
|
|
|
AttrListBean attrListBean = AttrListBean(); |
|
|
|
attrListBean.productId = map['productId']; |
|
|
|
attrListBean.productId = map['productId']; |
|
|
@ -375,7 +375,7 @@ class AttrListBean { |
|
|
|
attrListBean.attrCode = map['attrCode']; |
|
|
|
attrListBean.attrCode = map['attrCode']; |
|
|
|
attrListBean.id = map['id']; |
|
|
|
attrListBean.id = map['id']; |
|
|
|
attrListBean.attrValueList = List()..addAll( |
|
|
|
attrListBean.attrValueList = List()..addAll( |
|
|
|
(map['attrValueList'] as List ?? []).map((o) => AttrValueListBean.fromMap(o)) |
|
|
|
(map['attrValueList'] as List ?? []).map((o) => AttrValueListBean.fromJon(o)) |
|
|
|
); |
|
|
|
); |
|
|
|
return attrListBean; |
|
|
|
return attrListBean; |
|
|
|
} |
|
|
|
} |
|
|
@ -410,7 +410,7 @@ class AttrValueListBean { |
|
|
|
dynamic attrValueCode; |
|
|
|
dynamic attrValueCode; |
|
|
|
bool isSelected; |
|
|
|
bool isSelected; |
|
|
|
|
|
|
|
|
|
|
|
static AttrValueListBean fromMap(Map<String, dynamic> map) { |
|
|
|
static AttrValueListBean fromJon(Map<String, dynamic> map) { |
|
|
|
if (map == null) return null; |
|
|
|
if (map == null) return null; |
|
|
|
AttrValueListBean attrValueListBean = AttrValueListBean(); |
|
|
|
AttrValueListBean attrValueListBean = AttrValueListBean(); |
|
|
|
attrValueListBean.id = map['id']; |
|
|
|
attrValueListBean.id = map['id']; |
|
|
@ -449,7 +449,7 @@ class StoreDTOBean { |
|
|
|
int productCount; |
|
|
|
int productCount; |
|
|
|
int soldNum; |
|
|
|
int soldNum; |
|
|
|
|
|
|
|
|
|
|
|
static StoreDTOBean fromMap(Map<String, dynamic> map) { |
|
|
|
static StoreDTOBean fromJon(Map<String, dynamic> map) { |
|
|
|
if (map == null) return null; |
|
|
|
if (map == null) return null; |
|
|
|
StoreDTOBean storeDTOBean = StoreDTOBean(); |
|
|
|
StoreDTOBean storeDTOBean = StoreDTOBean(); |
|
|
|
storeDTOBean.id = map['id']; |
|
|
|
storeDTOBean.id = map['id']; |
|
|
|