|
|
|
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<Commoditys>? CommodityList = [];
|
|
|
|
List<CommodityZones>? CommodityZone = [];
|
|
|
|
String? CommodityListImg = '';
|
|
|
|
|
|
|
|
HomeRank();
|
|
|
|
|
|
|
|
factory HomeRank.fromJson(Map<String, dynamic> json) => _$HomeRankFromJson(json);
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() => _$HomeRankToJson(this);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
@JsonSerializable(explicitToJson: true)
|
|
|
|
class Commoditys {
|
|
|
|
List<GoodList>? goodList = [];
|
|
|
|
String? typeName = '';
|
|
|
|
Commoditys();
|
|
|
|
factory Commoditys.fromJson(Map<String, dynamic> json) => _$CommoditysFromJson(json);
|
|
|
|
Map<String, dynamic> toJson() => _$CommoditysToJson(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
@JsonSerializable(explicitToJson: true)
|
|
|
|
class CommodityZones {
|
|
|
|
String? productImg = '';
|
|
|
|
List<ProductSkuVOList>? 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<String, dynamic> json) => _$CommodityZonesFromJson(json);
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() => _$CommodityZonesToJson(this);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|