import 'package:huixiang/data/good_list.dart'; import 'package:huixiang/data/mini_detail.dart'; import 'package:huixiang/generated/json/base/json_field.dart'; import 'package:huixiang/generated/json/home_rank.g.dart'; import 'dart:convert'; export 'package:huixiang/generated/json/home_rank.g.dart'; @JsonSerializable() class HomeRank { @JSONField(name: "CommodityList") List? commodityList = []; @JSONField(name: "CommodityZone") List? commodityZone = []; @JSONField(name: "CommodityListImg") String? commodityListImg = ''; HomeRank(); factory HomeRank.fromJson(Map json) => $HomeRankFromJson(json); Map toJson() => $HomeRankToJson(this); @override String toString() { return jsonEncode(this); } } @JsonSerializable() class CommodityList { List? goodList = []; String? typeName = ''; CommodityList(); factory CommodityList.fromJson(Map json) => $CommodityListFromJson(json); Map toJson() => $CommodityListToJson(this); @override String toString() { return jsonEncode(this); } } @JsonSerializable() 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); @override String toString() { return jsonEncode(this); } }