notice_manage_list.dart 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. class NoticeManageList {
  2. String? msg;
  3. int? code;
  4. List<Data>? data;
  5. NoticeManageList({this.msg, this.code, this.data});
  6. NoticeManageList.fromJson(Map<String, dynamic> json) {
  7. msg = json['msg'];
  8. code = json['code'];
  9. if (json['data'] != null) {
  10. data = <Data>[];
  11. json['data'].forEach((v) {
  12. data!.add(new Data.fromJson(v));
  13. });
  14. }
  15. }
  16. Map<String, dynamic> toJson() {
  17. final Map<String, dynamic> data = new Map<String, dynamic>();
  18. data['msg'] = this.msg;
  19. data['code'] = this.code;
  20. if (this.data != null) {
  21. data['data'] = this.data!.map((v) => v.toJson()).toList();
  22. }
  23. return data;
  24. }
  25. }
  26. class Data {
  27. String? id;
  28. int? isDel;
  29. String? createDate;
  30. String? createUser;
  31. String? updateDate;
  32. String? updateUser;
  33. String? tenantId;
  34. String? noticeTitle;
  35. String? noticeContent;
  36. String? noticeStartTime;
  37. String? noticeEndTime;
  38. int? publishStatus;
  39. int? displayStatus;
  40. String? publishPeople;
  41. Data(
  42. {this.id,
  43. this.isDel,
  44. this.createDate,
  45. this.createUser,
  46. this.updateDate,
  47. this.updateUser,
  48. this.tenantId,
  49. this.noticeTitle,
  50. this.noticeContent,
  51. this.noticeStartTime,
  52. this.noticeEndTime,
  53. this.publishStatus,
  54. this.displayStatus,
  55. this.publishPeople});
  56. Data.fromJson(Map<String, dynamic> json) {
  57. id = json['id'];
  58. isDel = json['isDel'];
  59. createDate = json['createDate'];
  60. createUser = json['createUser'];
  61. updateDate = json['updateDate'];
  62. updateUser = json['updateUser'];
  63. tenantId = json['tenantId'];
  64. noticeTitle = json['noticeTitle'];
  65. noticeContent = json['noticeContent'];
  66. noticeStartTime = json['noticeStartTime'];
  67. noticeEndTime = json['noticeEndTime'];
  68. publishStatus = json['publishStatus'];
  69. displayStatus = json['displayStatus'];
  70. publishPeople = json['publishPeople'];
  71. }
  72. Map<String, dynamic> toJson() {
  73. final Map<String, dynamic> data = new Map<String, dynamic>();
  74. data['id'] = this.id;
  75. data['isDel'] = this.isDel;
  76. data['createDate'] = this.createDate;
  77. data['createUser'] = this.createUser;
  78. data['updateDate'] = this.updateDate;
  79. data['updateUser'] = this.updateUser;
  80. data['tenantId'] = this.tenantId;
  81. data['noticeTitle'] = this.noticeTitle;
  82. data['noticeContent'] = this.noticeContent;
  83. data['noticeStartTime'] = this.noticeStartTime;
  84. data['noticeEndTime'] = this.noticeEndTime;
  85. data['publishStatus'] = this.publishStatus;
  86. data['displayStatus'] = this.displayStatus;
  87. data['publishPeople'] = this.publishPeople;
  88. return data;
  89. }
  90. }