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.
 
 
 
 
 
 

76 lines
1.7 KiB

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>? commodityList = [];
@JSONField(name: "CommodityZone")
List<CommodityZone>? commodityZone = [];
@JSONField(name: "CommodityListImg")
String? commodityListImg = '';
HomeRank();
factory HomeRank.fromJson(Map<String, dynamic> json) => $HomeRankFromJson(json);
Map<String, dynamic> toJson() => $HomeRankToJson(this);
@override
String toString() {
return jsonEncode(this);
}
}
@JsonSerializable()
class CommodityList {
List<GoodList>? goodList = [];
String? typeName = '';
CommodityList();
factory CommodityList.fromJson(Map<String, dynamic> json) => $CommodityListFromJson(json);
Map<String, dynamic> toJson() => $CommodityListToJson(this);
@override
String toString() {
return jsonEncode(this);
}
}
@JsonSerializable()
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);
@override
String toString() {
return jsonEncode(this);
}
}