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.

61 lines
1.7KB

  1. class Harvest {
  2. int? id;
  3. int? cropId;
  4. int? activityId;
  5. String? executeDate;
  6. String? description;
  7. String? executeBy;
  8. String? media;
  9. List<String>? mediaDel;
  10. num? collectedQuantityLv1;
  11. num? collectedQuantityLv2;
  12. num? collectedQuantityLv3;
  13. num? removedQuantity;
  14. Harvest({
  15. this.id,
  16. this.cropId,
  17. this.activityId,
  18. this.executeDate,
  19. this.description,
  20. this.executeBy,
  21. this.media,
  22. this.mediaDel,
  23. this.collectedQuantityLv1,
  24. this.collectedQuantityLv2,
  25. this.collectedQuantityLv3,
  26. this.removedQuantity,
  27. });
  28. Harvest.fromJson(Map<String, dynamic> json) {
  29. id = json['id'];
  30. cropId = json['cropId'];
  31. activityId = json['activityId'];
  32. executeDate = json['executeDate'];
  33. description = json['description'];
  34. executeBy = json['executeBy'];
  35. media = json['media'];
  36. collectedQuantityLv1 = json['collectedQuantityLv1'];
  37. collectedQuantityLv2 = json['collectedQuantityLv2'];
  38. collectedQuantityLv3 = json['collectedQuantityLv3'];
  39. removedQuantity = json['removedQuantity'];
  40. }
  41. Map<String, dynamic> toJson() {
  42. final Map<String, dynamic> data = new Map<String, dynamic>();
  43. data['id'] = this.id;
  44. data['cropId'] = this.cropId;
  45. data['activityId'] = this.activityId;
  46. data['executeDate'] = this.executeDate;
  47. data['description'] = this.description;
  48. data['executeBy'] = this.executeBy;
  49. data['media'] = this.media;
  50. data['media_del'] = this.mediaDel;
  51. data['collectedQuantityLv1'] = this.collectedQuantityLv1;
  52. data['collectedQuantityLv2'] = this.collectedQuantityLv2;
  53. data['collectedQuantityLv3'] = this.collectedQuantityLv3;
  54. data['removedQuantity'] = this.removedQuantity;
  55. return data;
  56. }
  57. }