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.

41 lines
1000B

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