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.

69 lines
1.9KB

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