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.

73 lines
2.0KB

  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. CropStatus(
  18. {this.id,
  19. this.cropId,
  20. this.activityId,
  21. this.executeDate,
  22. this.cropRate,
  23. this.numberOfTreeToGrow,
  24. this.heightOfTree,
  25. this.numberOfLeaf,
  26. this.leafSize,
  27. this.leafColor,
  28. this.abilityProduceBuds,
  29. this.internodeLength,
  30. this.description,
  31. this.executeBy,
  32. this.media});
  33. CropStatus.fromJson(Map<String, dynamic> json) {
  34. id = json['id'];
  35. cropId = json['cropId'];
  36. activityId = json['activityId'];
  37. executeDate = json['executeDate'];
  38. cropRate = json['cropRate'];
  39. numberOfTreeToGrow = json['numberOfTreeToGrow'];
  40. heightOfTree = json['heightOfTree'];
  41. numberOfLeaf = json['numberOfLeaf'];
  42. leafSize = json['leafSize'];
  43. leafColor = json['leafColor'];
  44. abilityProduceBuds = json['abilityProduceBuds'];
  45. internodeLength = json['internodeLength'];
  46. description = json['description'];
  47. executeBy = json['executeBy'];
  48. media = json['media'];
  49. }
  50. Map<String, dynamic> toJson() {
  51. final Map<String, dynamic> data = new Map<String, dynamic>();
  52. data['id'] = this.id;
  53. data['cropId'] = this.cropId;
  54. data['activityId'] = this.activityId;
  55. data['executeDate'] = this.executeDate;
  56. data['cropRate'] = this.cropRate;
  57. data['numberOfTreeToGrow'] = this.numberOfTreeToGrow;
  58. data['heightOfTree'] = this.heightOfTree;
  59. data['numberOfLeaf'] = this.numberOfLeaf;
  60. data['leafSize'] = this.leafSize;
  61. data['leafColor'] = this.leafColor;
  62. data['abilityProduceBuds'] = this.abilityProduceBuds;
  63. data['internodeLength'] = this.internodeLength;
  64. data['description'] = this.description;
  65. data['executeBy'] = this.executeBy;
  66. data['media'] = this.media;
  67. return data;
  68. }
  69. }