meeting_info.dart 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. // To parse this JSON data, do
  2. //
  3. // final meetingInfoModel = meetingInfoModelFromJson(jsonString);
  4. import 'meeting_attachment.dart';
  5. import 'meeting_room.dart';
  6. class MeetingInfoModel {
  7. MeetingInfoModel({
  8. this.status,
  9. this.myApply,
  10. this.myWaitConfirm,
  11. this.myWaitAccept,
  12. this.myAccept,
  13. this.myReject,
  14. this.woRoom,
  15. this.attachmentList,
  16. this.id,
  17. this.subject,
  18. this.pinyin,
  19. this.pinyinInitial,
  20. this.summary,
  21. this.room,
  22. this.startTime,
  23. this.completedTime,
  24. this.inviteMemberList,
  25. this.invitePersonList,
  26. this.inviteDelPersonList,
  27. this.acceptPersonList,
  28. this.rejectPersonList,
  29. this.checkinPersonList,
  30. this.confirmStatus,
  31. this.manualCompleted,
  32. this.applicant,
  33. this.hostUnit,
  34. this.hostPerson,
  35. this.type,
  36. this.createTime,
  37. this.updateTime,
  38. this.mode,
  39. this.roomLink,
  40. this.roomId
  41. });
  42. String? status; // wait processing completed
  43. bool? myApply;
  44. bool? myWaitConfirm;
  45. bool? myWaitAccept;
  46. bool? myAccept;
  47. bool? myReject;
  48. MeetingRoom? woRoom;
  49. List<MeetingAttachmentModel>? attachmentList;
  50. String? id;
  51. String? subject;
  52. String? pinyin;
  53. String? pinyinInitial;
  54. String? summary;
  55. String? room;
  56. String? startTime;
  57. String? completedTime;
  58. List<String>? inviteMemberList;
  59. List<String>? invitePersonList;
  60. List<String>? inviteDelPersonList;
  61. List<String>? acceptPersonList;
  62. List<String>? rejectPersonList;
  63. List<String>? checkinPersonList;
  64. String? confirmStatus;
  65. bool? manualCompleted;
  66. String? applicant; // 会议申请人
  67. String? hostUnit;
  68. String? hostPerson;
  69. String? type;
  70. String? createTime;
  71. String? updateTime;
  72. // 2023-05 新增字段 在线会议
  73. String? mode; // online|线上会议;offline|线下会议
  74. String? roomId; // 在线会议房间号
  75. String? roomLink; // 在线会议打开链接
  76. factory MeetingInfoModel.fromJson(Map<String, dynamic> json) => MeetingInfoModel(
  77. status: json["status"],
  78. myApply: json["myApply"],
  79. myWaitConfirm: json["myWaitConfirm"] ,
  80. myWaitAccept: json["myWaitAccept"],
  81. myAccept: json["myAccept"] ,
  82. myReject: json["myReject"] ,
  83. woRoom: json["woRoom"] == null ? null : MeetingRoom.fromJson(json["woRoom"]),
  84. attachmentList: json["attachmentList"] == null ? null : List<MeetingAttachmentModel>.from(json["attachmentList"].map((x) => MeetingAttachmentModel.fromJson(x))),
  85. id: json["id"] ,
  86. subject: json["subject"] ,
  87. pinyin: json["pinyin"],
  88. pinyinInitial: json["pinyinInitial"] ,
  89. summary: json["summary"] ,
  90. room: json["room"] ,
  91. startTime: json["startTime"] ,
  92. completedTime: json["completedTime"],
  93. inviteMemberList: json["inviteMemberList"] == null ? null : List<String>.from(json["inviteMemberList"].map((x) => x)),
  94. invitePersonList: json["invitePersonList"] == null ? null : List<String>.from(json["invitePersonList"].map((x) => x)),
  95. inviteDelPersonList: json["inviteDelPersonList"] == null ? null : List<String>.from(json["inviteDelPersonList"].map((x) => x)),
  96. acceptPersonList: json["acceptPersonList"] == null ? null : List<String>.from(json["acceptPersonList"].map((x) => x)),
  97. rejectPersonList: json["rejectPersonList"] == null ? null : List<String>.from(json["rejectPersonList"].map((x) => x)),
  98. checkinPersonList: json["checkinPersonList"] == null ? null : List<String>.from(json["checkinPersonList"].map((x) => x)),
  99. confirmStatus: json["confirmStatus"],
  100. manualCompleted: json["manualCompleted"],
  101. applicant: json["applicant"],
  102. hostUnit: json["hostUnit"],
  103. hostPerson: json["hostPerson"],
  104. type: json["type"],
  105. createTime: json["createTime"],
  106. updateTime: json["updateTime"],
  107. mode: json["mode"],
  108. roomId: json["roomId"],
  109. roomLink: json["roomLink"],
  110. );
  111. Map<String, dynamic> toJson() => {
  112. "status": status ,
  113. "myApply": myApply,
  114. "myWaitConfirm": myWaitConfirm ,
  115. "myWaitAccept": myWaitAccept ,
  116. "myAccept": myAccept ,
  117. "myReject": myReject,
  118. "woRoom": woRoom,
  119. "attachmentList": attachmentList == null ? null : attachmentList!.map((e) => e.toJson()).toList() ,
  120. "id": id,
  121. "subject": subject ,
  122. "pinyin": pinyin,
  123. "pinyinInitial": pinyinInitial ,
  124. "summary": summary ,
  125. "room": room,
  126. "startTime": startTime ,
  127. "completedTime": completedTime ,
  128. "inviteMemberList": inviteMemberList ,
  129. "invitePersonList": invitePersonList ,
  130. "inviteDelPersonList": inviteDelPersonList ,
  131. "acceptPersonList": acceptPersonList ,
  132. "rejectPersonList": rejectPersonList ,
  133. "checkinPersonList": checkinPersonList,
  134. "confirmStatus": confirmStatus ,
  135. "manualCompleted": manualCompleted ,
  136. "applicant": applicant ,
  137. "hostUnit": hostUnit,
  138. "hostPerson": hostPerson ,
  139. "type": type ,
  140. "createTime": createTime ,
  141. "updateTime": updateTime,
  142. "mode": mode,
  143. "roomId": roomId,
  144. "roomLink": roomLink,
  145. };
  146. MeetingInfoModel newInstanceCopyValue() => MeetingInfoModel(
  147. status: status ,
  148. myApply: myApply,
  149. myWaitConfirm: myWaitConfirm ,
  150. myWaitAccept: myWaitAccept ,
  151. myAccept: myAccept ,
  152. myReject: myReject,
  153. woRoom: woRoom,
  154. attachmentList: attachmentList ,
  155. id: id,
  156. subject: subject ,
  157. pinyin: pinyin,
  158. pinyinInitial: pinyinInitial ,
  159. summary: summary ,
  160. room: room,
  161. startTime: startTime ,
  162. completedTime: completedTime ,
  163. inviteMemberList: inviteMemberList ,
  164. invitePersonList: invitePersonList ,
  165. inviteDelPersonList: inviteDelPersonList ,
  166. acceptPersonList: acceptPersonList ,
  167. rejectPersonList: rejectPersonList ,
  168. checkinPersonList: checkinPersonList,
  169. confirmStatus: confirmStatus ,
  170. manualCompleted: manualCompleted ,
  171. applicant: applicant ,
  172. hostUnit: hostUnit,
  173. hostPerson: hostPerson ,
  174. type: type ,
  175. createTime: createTime ,
  176. updateTime: updateTime,
  177. mode: mode,
  178. roomId: roomId,
  179. roomLink: roomLink,
  180. );
  181. }