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.

45 lines
1.1KB

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