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.

37 lines
835B

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