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.
76 lines
3.0 KiB
76 lines
3.0 KiB
1 month ago
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||
|
|
||
|
part of 'home_rank.dart';
|
||
|
|
||
|
// **************************************************************************
|
||
|
// JsonSerializableGenerator
|
||
|
// **************************************************************************
|
||
|
|
||
|
HomeRank _$HomeRankFromJson(Map<String, dynamic> json) => HomeRank()
|
||
|
..commodityList = (json['commodityList'] as List<dynamic>?)
|
||
|
?.map((e) => CommodityList.fromJson(e as Map<String, dynamic>))
|
||
|
.toList()
|
||
|
..commodityZone = (json['commodityZone'] as List<dynamic>?)
|
||
|
?.map((e) => CommodityZone.fromJson(e as Map<String, dynamic>))
|
||
|
.toList()
|
||
|
..commodityListImg = json['commodityListImg'] as String?;
|
||
|
|
||
|
Map<String, dynamic> _$HomeRankToJson(HomeRank instance) => <String, dynamic>{
|
||
|
'commodityList': instance.commodityList?.map((e) => e.toJson()).toList(),
|
||
|
'commodityZone': instance.commodityZone?.map((e) => e.toJson()).toList(),
|
||
|
'commodityListImg': instance.commodityListImg,
|
||
|
};
|
||
|
|
||
|
CommodityList _$CommodityListFromJson(Map<String, dynamic> json) =>
|
||
|
CommodityList()
|
||
|
..goodList = (json['goodList'] as List<dynamic>?)
|
||
|
?.map((e) => GoodList.fromJson(e as Map<String, dynamic>))
|
||
|
.toList()
|
||
|
..typeName = json['typeName'] as String?;
|
||
|
|
||
|
Map<String, dynamic> _$CommodityListToJson(CommodityList instance) =>
|
||
|
<String, dynamic>{
|
||
|
'goodList': instance.goodList?.map((e) => e.toJson()).toList(),
|
||
|
'typeName': instance.typeName,
|
||
|
};
|
||
|
|
||
|
CommodityZone _$CommodityZoneFromJson(Map<String, dynamic> json) =>
|
||
|
CommodityZone()
|
||
|
..productImg = json['productImg'] as String?
|
||
|
..productSkuVOList = (json['productSkuVOList'] as List<dynamic>?)
|
||
|
?.map((e) => ProductSkuVOList.fromJson(e as Map<String, dynamic>))
|
||
|
.toList()
|
||
|
..thumbnailImg = json['thumbnailImg'] as String?
|
||
|
..productName = json['productName'] as String?
|
||
|
..posShow = json['posShow'] as bool?
|
||
|
..price = json['price'] as String?
|
||
|
..sellCount = (json['sellCount'] as num?)?.toInt()
|
||
|
..details = json['details'] as String?
|
||
|
..id = json['id'] as String?
|
||
|
..applyPrice = json['applyPrice'] as String?
|
||
|
..stock = (json['stock'] as num?)?.toInt()
|
||
|
..status = (json['status'] as num?)?.toInt()
|
||
|
..info = json['info'] as String?
|
||
|
..storeId = json['storeId'] as String?
|
||
|
..tenantCode = json['tenantCode'] as String?;
|
||
|
|
||
|
Map<String, dynamic> _$CommodityZoneToJson(CommodityZone instance) =>
|
||
|
<String, dynamic>{
|
||
|
'productImg': instance.productImg,
|
||
|
'productSkuVOList':
|
||
|
instance.productSkuVOList?.map((e) => e.toJson()).toList(),
|
||
|
'thumbnailImg': instance.thumbnailImg,
|
||
|
'productName': instance.productName,
|
||
|
'posShow': instance.posShow,
|
||
|
'price': instance.price,
|
||
|
'sellCount': instance.sellCount,
|
||
|
'details': instance.details,
|
||
|
'id': instance.id,
|
||
|
'applyPrice': instance.applyPrice,
|
||
|
'stock': instance.stock,
|
||
|
'status': instance.status,
|
||
|
'info': instance.info,
|
||
|
'storeId': instance.storeId,
|
||
|
'tenantCode': instance.tenantCode,
|
||
|
};
|