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.

76 lines
2.1KB

  1. class CropStatus {
  2. int id;
  3. int cropId;
  4. int activityId;
  5. String executeDate;
  6. String cropRate;
  7. String numberOfTreeToGrow;
  8. String heightOfTree;
  9. String numberOfLeaf;
  10. String leafSize;
  11. String leafColor;
  12. String abilityProduceBuds;
  13. String internodeLength;
  14. String description;
  15. String executeBy;
  16. String media;
  17. List<String> mediaDel;
  18. CropStatus(
  19. {this.id,
  20. this.cropId,
  21. this.activityId,
  22. this.executeDate,
  23. this.cropRate,
  24. this.numberOfTreeToGrow,
  25. this.heightOfTree,
  26. this.numberOfLeaf,
  27. this.leafSize,
  28. this.leafColor,
  29. this.abilityProduceBuds,
  30. this.internodeLength,
  31. this.description,
  32. this.executeBy,
  33. this.media,
  34. this.mediaDel});
  35. CropStatus.fromJson(Map<String, dynamic> json) {
  36. id = json['id'];
  37. cropId = json['cropId'];
  38. activityId = json['activityId'];
  39. executeDate = json['executeDate'];
  40. cropRate = json['cropRate'];
  41. numberOfTreeToGrow = json['numberOfTreeToGrow'];
  42. heightOfTree = json['heightOfTree'];
  43. numberOfLeaf = json['numberOfLeaf'];
  44. leafSize = json['leafSize'];
  45. leafColor = json['leafColor'];
  46. abilityProduceBuds = json['abilityProduceBuds'];
  47. internodeLength = json['internodeLength'];
  48. description = json['description'];
  49. executeBy = json['executeBy'];
  50. media = json['media'];
  51. }
  52. Map<String, dynamic> toJson() {
  53. final Map<String, dynamic> data = new Map<String, dynamic>();
  54. data['id'] = this.id;
  55. data['cropId'] = this.cropId;
  56. data['activityId'] = this.activityId;
  57. data['executeDate'] = this.executeDate;
  58. data['cropRate'] = this.cropRate;
  59. data['numberOfTreeToGrow'] = this.numberOfTreeToGrow;
  60. data['heightOfTree'] = this.heightOfTree;
  61. data['numberOfLeaf'] = this.numberOfLeaf;
  62. data['leafSize'] = this.leafSize;
  63. data['leafColor'] = this.leafColor;
  64. data['abilityProduceBuds'] = this.abilityProduceBuds;
  65. data['internodeLength'] = this.internodeLength;
  66. data['description'] = this.description;
  67. data['executeBy'] = this.executeBy;
  68. data['media'] = this.media;
  69. data['media_del'] = this.mediaDel;
  70. return data;
  71. }
  72. }