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.

53 lines
1.2KB

  1. class UseWater {
  2. int? id;
  3. int? activityId;
  4. int? cropId;
  5. String? executeDate;
  6. String? media;
  7. List<String>? mediaDel;
  8. String? waterType;
  9. num? amount;
  10. String? description;
  11. String? executeBy;
  12. UseWater({
  13. this.id,
  14. this.activityId,
  15. this.cropId,
  16. this.executeDate,
  17. this.media,
  18. this.mediaDel,
  19. this.waterType,
  20. this.amount,
  21. this.description,
  22. this.executeBy,
  23. });
  24. UseWater.fromJson(Map<String, dynamic> json) {
  25. id = json['id'];
  26. activityId = json['activityId'];
  27. cropId = json['cropId'];
  28. executeDate = json['executeDate'];
  29. media = json['media'];
  30. waterType = json['waterType'];
  31. amount = json['amount'];
  32. description = json['description'];
  33. executeBy = json['executeBy'];
  34. }
  35. Map<String, dynamic> toJson() {
  36. final Map<String, dynamic> data = new Map<String, dynamic>();
  37. data['id'] = this.id;
  38. data['activityId'] = this.activityId;
  39. data['cropId'] = this.cropId;
  40. data['executeDate'] = this.executeDate;
  41. data['media'] = this.media;
  42. data['media_del'] = this.mediaDel;
  43. data['waterType'] = this.waterType;
  44. data['amount'] = this.amount;
  45. data['description'] = this.description;
  46. data['executeBy'] = this.executeBy;
  47. return data;
  48. }
  49. }