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.

81 lines
2.0KB

  1. class Crop {
  2. num? id;
  3. String? qrCode;
  4. String? code;
  5. double? areaM2;
  6. num? type;
  7. String? startDate;
  8. String? endDate;
  9. String? status;
  10. String? description;
  11. num? ageDayStartAt;
  12. num? tbSuppliesId;
  13. String? suppliesName;
  14. num? tbGuidelineId;
  15. num? netHouseId;
  16. String? netHouseName;
  17. num? areaId;
  18. String? area;
  19. Crop(
  20. {this.id,
  21. this.qrCode,
  22. this.code,
  23. this.areaM2,
  24. this.type,
  25. this.startDate,
  26. this.endDate,
  27. this.status,
  28. this.description,
  29. this.ageDayStartAt,
  30. this.tbSuppliesId,
  31. this.suppliesName,
  32. this.tbGuidelineId,
  33. this.netHouseId,
  34. this.netHouseName,
  35. this.areaId,
  36. this.area});
  37. Crop.fromJson(Map<String, dynamic> json) {
  38. id = json['id'];
  39. qrCode = json['qrCode'];
  40. code = json['code'];
  41. areaM2 = json['areaM2'];
  42. type = json['type'];
  43. startDate = json['startDate'];
  44. endDate = json['endDate'];
  45. status = json['status'];
  46. description = json['description'];
  47. ageDayStartAt = json['ageDayStartAt'];
  48. tbSuppliesId = json['tbSuppliesId'];
  49. suppliesName = json['suppliesName'];
  50. tbGuidelineId = json['tbGuidelineId'];
  51. netHouseId = json['netHouseId'];
  52. netHouseName = json['netHouseName'];
  53. areaId = json['areaId'];
  54. area = json['area'];
  55. }
  56. Map<String, dynamic> toJson() {
  57. final Map<String, dynamic> data = new Map<String, dynamic>();
  58. data['id'] = this.id;
  59. data['qrCode'] = this.qrCode;
  60. data['code'] = this.code;
  61. data['areaM2'] = this.areaM2;
  62. data['type'] = this.type;
  63. data['startDate'] = this.startDate;
  64. data['endDate'] = this.endDate;
  65. data['status'] = this.status;
  66. data['description'] = this.description;
  67. data['ageDayStartAt'] = this.ageDayStartAt;
  68. data['tbSuppliesId'] = this.tbSuppliesId;
  69. data['suppliesName'] = this.suppliesName;
  70. data['tbGuidelineId'] = this.tbGuidelineId;
  71. data['netHouseId'] = this.netHouseId;
  72. data['netHouseName'] = this.netHouseName;
  73. data['areaId'] = this.areaId;
  74. data['area'] = this.area;
  75. return data;
  76. }
  77. }