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 data = {}; data['id'] = id; data['cropId'] = cropId; data['activityId'] = activityId; data['executeDate'] = executeDate; data['description'] = description; data['executeBy'] = executeBy; data['media'] = media; data['media_del'] = mediaDel; data['collectedQuantityLv1'] = collectedQuantityLv1; data['collectedQuantityLv2'] = collectedQuantityLv2; data['collectedQuantityLv3'] = collectedQuantityLv3; data['removedQuantity'] = removedQuantity; return data; } }