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 json) { id = json['id']; skuName = json['skuName']; mainPhoto = json['mainPhoto']; sellPrice = json['sellPrice']; discountPrice = json['discountPrice']; kind = json['kind']; isCollection = json['isCollection']; } Map toJson() { final Map data = new Map(); 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; } }