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.
57 lines
1.4 KiB
57 lines
1.4 KiB
1 month ago
|
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>? commodityList = [];
|
||
|
List<CommodityZone>? commodityZone = [];
|
||
|
String? commodityListImg = '';
|
||
|
|
||
|
HomeRank();
|
||
|
|
||
|
factory HomeRank.fromJson(Map<String, dynamic> json) => _$HomeRankFromJson(json);
|
||
|
|
||
|
Map<String, dynamic> toJson() => _$HomeRankToJson(this);
|
||
|
|
||
|
}
|
||
|
|
||
|
@JsonSerializable(explicitToJson: true)
|
||
|
class CommodityList {
|
||
|
List<GoodList>? goodList = [];
|
||
|
String? typeName = '';
|
||
|
CommodityList();
|
||
|
factory CommodityList.fromJson(Map<String, dynamic> json) => _$CommodityListFromJson(json);
|
||
|
Map<String, dynamic> toJson() => _$CommodityListToJson(this);
|
||
|
}
|
||
|
|
||
|
@JsonSerializable(explicitToJson: true)
|
||
|
class CommodityZone {
|
||
|
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 = '';
|
||
|
|
||
|
CommodityZone();
|
||
|
|
||
|
factory CommodityZone.fromJson(Map<String, dynamic> json) => _$CommodityZoneFromJson(json);
|
||
|
|
||
|
Map<String, dynamic> toJson() => _$CommodityZoneToJson(this);
|
||
|
|
||
|
|
||
|
}
|
||
|
|