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.

48 lines
1.2KB

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