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.

88 lines
2.4KB

  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? createdDate;
  27. int? createdById;
  28. String? createdByName;
  29. int? activityTypeId;
  30. String? activityTypeName;
  31. String? activityTypeDescription;
  32. String? codeId;
  33. bool? afterHarvest;
  34. ContentTimeline(
  35. {this.id,
  36. this.ageDay,
  37. this.cropId,
  38. this.executeDate,
  39. this.description,
  40. this.createdDate,
  41. this.createdById,
  42. this.createdByName,
  43. this.activityTypeId,
  44. this.activityTypeName,
  45. this.activityTypeDescription,
  46. this.codeId,
  47. this.afterHarvest});
  48. ContentTimeline.fromJson(Map<String, dynamic> json) {
  49. id = json['id'];
  50. ageDay = json['ageDay'];
  51. cropId = json['cropId'];
  52. executeDate = json['executeDate'];
  53. description = json['description'];
  54. createdDate = json['createdDate'];
  55. createdById = json['createdById'];
  56. createdByName = json['createdByName'];
  57. activityTypeId = json['activityTypeId'];
  58. activityTypeName = json['activityTypeName'];
  59. activityTypeDescription = json['activityTypeDescription'];
  60. codeId = json['codeId'];
  61. afterHarvest = json['afterHarvest'];
  62. }
  63. Map<String, dynamic> toJson() {
  64. final Map<String, dynamic> data = new Map<String, dynamic>();
  65. data['id'] = this.id;
  66. data['ageDay'] = this.ageDay;
  67. data['cropId'] = this.cropId;
  68. data['executeDate'] = this.executeDate;
  69. data['description'] = this.description;
  70. data['createdDate'] = this.createdDate;
  71. data['createdById'] = this.createdById;
  72. data['createdByName'] = this.createdByName;
  73. data['activityTypeId'] = this.activityTypeId;
  74. data['activityTypeName'] = this.activityTypeName;
  75. data['activityTypeDescription'] = this.activityTypeDescription;
  76. data['codeId'] = this.codeId;
  77. data['afterHarvest'] = this.afterHarvest;
  78. return data;
  79. }
  80. }