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.1KB

  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 data = <String, dynamic>{};
  33. data['id'] = id;
  34. data['cropId'] = cropId;
  35. data['activityId'] = activityId;
  36. data['media'] = media;
  37. data['media_del'] = mediaDel;
  38. data['executeDate'] = executeDate;
  39. data['description'] = description;
  40. data['createdByName'] = createdByName;
  41. data['activityTypeName'] = activityTypeName;
  42. return data;
  43. }
  44. }