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 CommodityList { List? goodList = []; String? typeName = ''; CommodityList(); factory CommodityList.fromJson(Map json) => _$CommodityListFromJson(json); Map toJson() => _$CommodityListToJson(this); } @JsonSerializable(explicitToJson: true) class CommodityZone { 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 = ''; CommodityZone(); factory CommodityZone.fromJson(Map json) => _$CommodityZoneFromJson(json); Map toJson() => _$CommodityZoneToJson(this); }