import 'package:huixiang/data/good_list.dart'; import 'package:huixiang/data/mini_detail.dart'; import 'package:json_annotation/json_annotation.dart'; part 'home_rank.g.dart'; @JsonSerializable(explicitToJson: true) class HomeRank { List? CommodityList = []; List? CommodityZone = []; String? CommodityListImg = ''; HomeRank(); factory HomeRank.fromJson(Map json) => _$HomeRankFromJson(json); Map toJson() => _$HomeRankToJson(this); } @JsonSerializable(explicitToJson: true) class Commoditys { List? goodList = []; String? typeName = ''; Commoditys(); factory Commoditys.fromJson(Map json) => _$CommoditysFromJson(json); Map toJson() => _$CommoditysToJson(this); } @JsonSerializable(explicitToJson: true) class CommodityZones { String? productImg = ''; List? productSkuVOList = []; String? thumbnailImg = ''; String? productName = ''; bool? posShow = false; String? price = ''; int? sellCount = 0; String? details = ''; String? id = ''; String? applyPrice = ''; int? stock = 0; int? status = 0; String? info = ''; String? storeId = ''; String? tenantCode = ''; CommodityZones(); factory CommodityZones.fromJson(Map json) => _$CommodityZonesFromJson(json); Map toJson() => _$CommodityZonesToJson(this); }