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.
aku_new_community/lib/models/search/search_goods_model.dart

41 lines
1010 B

class SearchGoodsModel {
int? id;
String? skuName;
String? mainPhoto;
double? sellPrice;
double? discountPrice;
int? kind;
int? isCollection;
SearchGoodsModel(
{this.id,
this.skuName,
this.mainPhoto,
this.sellPrice,
this.discountPrice,
this.kind,
this.isCollection});
SearchGoodsModel.fromJson(Map<String, dynamic> json) {
id = json['id'];
skuName = json['skuName'];
mainPhoto = json['mainPhoto'];
sellPrice = json['sellPrice'];
discountPrice = json['discountPrice'];
kind = json['kind'];
isCollection = json['isCollection'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
data['skuName'] = this.skuName;
data['mainPhoto'] = this.mainPhoto;
data['sellPrice'] = this.sellPrice;
data['discountPrice'] = this.discountPrice;
data['kind'] = this.kind;
data['isCollection'] = this.isCollection;
return data;
}
}