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.

44 lines
1.0KB

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