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.

65 lines
1.5KB

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