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.

91 lines
2.5KB

  1. class StampTimeline {
  2. List<ContentTimeline>? content;
  3. StampTimeline({this.content});
  4. StampTimeline.fromJson(Map<String, dynamic> json) {
  5. if (json['content'] != null) {
  6. content = <ContentTimeline>[];
  7. json['content'].forEach((v) {
  8. content?.add(new ContentTimeline.fromJson(v));
  9. });
  10. }
  11. }
  12. Map<String, dynamic> toJson() {
  13. final Map<String, dynamic> data = new Map<String, dynamic>();
  14. if (this.content != null) {
  15. data['content'] = this.content?.map((v) => v.toJson()).toList();
  16. }
  17. return data;
  18. }
  19. }
  20. class ContentTimeline {
  21. int? id;
  22. int? ageDay;
  23. int? cropId;
  24. String? executeDate;
  25. String? description;
  26. String? location;
  27. String? createdDate;
  28. int? createdById;
  29. String? createdByName;
  30. int? activityTypeId;
  31. String? activityTypeName;
  32. String? activityTypeDescription;
  33. String? codeId;
  34. bool? afterHarvest;
  35. ContentTimeline(
  36. {this.id,
  37. this.ageDay,
  38. this.cropId,
  39. this.executeDate,
  40. this.description,
  41. this.createdDate,
  42. this.createdById,
  43. this.createdByName,
  44. this.activityTypeId,
  45. this.activityTypeName,
  46. this.activityTypeDescription,
  47. this.codeId,
  48. this.afterHarvest});
  49. ContentTimeline.fromJson(Map<String, dynamic> json) {
  50. id = json['id'];
  51. ageDay = json['ageDay'];
  52. cropId = json['cropId'];
  53. executeDate = json['executeDate'];
  54. description = json['description'];
  55. location = json['location'];
  56. createdDate = json['createdDate'];
  57. createdById = json['createdById'];
  58. createdByName = json['createdByName'];
  59. activityTypeId = json['activityTypeId'];
  60. activityTypeName = json['activityTypeName'];
  61. activityTypeDescription = json['activityTypeDescription'];
  62. codeId = json['codeId'];
  63. afterHarvest = json['afterHarvest'];
  64. }
  65. Map<String, dynamic> toJson() {
  66. final Map<String, dynamic> data = new Map<String, dynamic>();
  67. data['id'] = this.id;
  68. data['ageDay'] = this.ageDay;
  69. data['cropId'] = this.cropId;
  70. data['executeDate'] = this.executeDate;
  71. data['description'] = this.description;
  72. data['location'] = this.location;
  73. data['createdDate'] = this.createdDate;
  74. data['createdById'] = this.createdById;
  75. data['createdByName'] = this.createdByName;
  76. data['activityTypeId'] = this.activityTypeId;
  77. data['activityTypeName'] = this.activityTypeName;
  78. data['activityTypeDescription'] = this.activityTypeDescription;
  79. data['codeId'] = this.codeId;
  80. data['afterHarvest'] = this.afterHarvest;
  81. return data;
  82. }
  83. }