class Sell { int id; int activityId; int harvestId; String executeDate; String description; num quantityLv1; num quantityLv2; num quantityLv3; num removedQuantity; String buyer; Sell( {this.id, this.activityId, this.harvestId, this.executeDate, this.description, this.quantityLv1, this.quantityLv2, this.quantityLv3, this.removedQuantity, this.buyer}); Sell.fromJson(Map json) { id = json['id']; activityId = json['activityId']; harvestId = json['harvestId']; executeDate = json['executeDate']; description = json['description']; quantityLv1 = json['quantityLv1']; quantityLv2 = json['quantityLv2']; quantityLv3 = json['quantityLv3']; removedQuantity = json['removedQuantity']; buyer = json['buyer']; } Map toJson() { final Map data = new Map(); data['id'] = this.id; data['activityId'] = this.activityId; data['harvestId'] = this.harvestId; data['executeDate'] = this.executeDate; data['description'] = this.description; data['quantityLv1'] = this.quantityLv1; data['quantityLv2'] = this.quantityLv2; data['quantityLv3'] = this.quantityLv3; data['removedQuantity'] = this.removedQuantity; data['buyer'] = this.buyer; return data; } }