class Harvest { int? id; int? cropId; int? activityId; String? executeDate; String? description; String? executeBy; String? media; List? mediaDel; num? collectedQuantityLv1; num? collectedQuantityLv2; num? collectedQuantityLv3; num? removedQuantity; Harvest({ this.id, this.cropId, this.activityId, this.executeDate, this.description, this.executeBy, this.media, this.mediaDel, this.collectedQuantityLv1, this.collectedQuantityLv2, this.collectedQuantityLv3, this.removedQuantity, }); Harvest.fromJson(Map json) { id = json['id']; cropId = json['cropId']; activityId = json['activityId']; executeDate = json['executeDate']; description = json['description']; executeBy = json['executeBy']; media = json['media']; collectedQuantityLv1 = json['collectedQuantityLv1']; collectedQuantityLv2 = json['collectedQuantityLv2']; collectedQuantityLv3 = json['collectedQuantityLv3']; removedQuantity = json['removedQuantity']; } Map toJson() { final Map data = new Map(); data['id'] = this.id; data['cropId'] = this.cropId; data['activityId'] = this.activityId; data['executeDate'] = this.executeDate; data['description'] = this.description; data['executeBy'] = this.executeBy; data['media'] = this.media; data['media_del'] = this.mediaDel; data['collectedQuantityLv1'] = this.collectedQuantityLv1; data['collectedQuantityLv2'] = this.collectedQuantityLv2; data['collectedQuantityLv3'] = this.collectedQuantityLv3; data['removedQuantity'] = this.removedQuantity; return data; } }