meeting_config.dart 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. class MeetingConfigModel {
  2. String? weekBegin; //周开始 0星期天 1星期一
  3. MeetingConfigProcessModel? process;
  4. List<String>? meetingViewer;
  5. List<String>? disableViewList;
  6. List<String>? typeList; // 会议类型
  7. bool? mobileCreateEnable; // 移动端是否可创建会议
  8. String? toMyMeetingViewName;
  9. String? toMonthViewName;
  10. String? toWeekViewName;
  11. String? toDayViewName;
  12. String? toListViewName;
  13. String? toRoomViewName;
  14. bool? enableOnline; // 是否启用在线会议
  15. String? onlineProduct; // 在线会议类型:其他 | 好视通
  16. MeetingConfigModel(
  17. {this.weekBegin,
  18. this.process,
  19. this.meetingViewer,
  20. this.disableViewList,
  21. this.typeList,
  22. this.mobileCreateEnable,
  23. this.toMyMeetingViewName,
  24. this.toMonthViewName,
  25. this.toWeekViewName,
  26. this.toDayViewName,
  27. this.toListViewName,
  28. this.toRoomViewName,
  29. this.enableOnline,
  30. this.onlineProduct
  31. });
  32. MeetingConfigModel.fromJson(Map<String, dynamic> json) {
  33. weekBegin = json['weekBegin'];
  34. process = json['process'] == null
  35. ? null
  36. : MeetingConfigProcessModel.fromJson(json['process']);
  37. meetingViewer = json['meetingViewer'] == null
  38. ? null
  39. : List<String>.from(json['meetingViewer'].map((x) => x));
  40. disableViewList = json['disableViewList'] == null
  41. ? null
  42. : List<String>.from(json['disableViewList'].map((x) => x));
  43. typeList = json['typeList'] == null
  44. ? null
  45. : List<String>.from(json['typeList'].map((x) => x));
  46. if (json['mobileCreateEnable'] != null &&
  47. json['mobileCreateEnable'] is String) {
  48. mobileCreateEnable = json['mobileCreateEnable'] == "true";
  49. } else {
  50. mobileCreateEnable = json['mobileCreateEnable'];
  51. }
  52. toMyMeetingViewName = json['toMyMeetingViewName'];
  53. toMonthViewName = json['toMonthViewName'];
  54. toWeekViewName = json['toWeekViewName'];
  55. toDayViewName = json['toDayViewName'];
  56. toListViewName = json['toListViewName'];
  57. toRoomViewName = json['toRoomViewName'];
  58. enableOnline = json['enableOnline'];
  59. onlineProduct = json['onlineProduct'];
  60. }
  61. Map<String, dynamic> toJson() {
  62. final Map<String, dynamic> data = <String, dynamic>{};
  63. data['weekBegin'] = weekBegin;
  64. data['process'] = process?.toJson();
  65. data['meetingViewer'] = meetingViewer;
  66. data['disableViewList'] = disableViewList;
  67. data['typeList'] = typeList;
  68. data['mobileCreateEnable'] = mobileCreateEnable;
  69. data['toMyMeetingViewName'] = toMyMeetingViewName;
  70. data['toMonthViewName'] = toMonthViewName;
  71. data['toWeekViewName'] = toWeekViewName;
  72. data['toDayViewName'] = toDayViewName;
  73. data['toListViewName'] = toListViewName;
  74. data['toRoomViewName'] = toRoomViewName;
  75. data['enableOnline'] = enableOnline;
  76. data['onlineProduct'] = onlineProduct;
  77. return data;
  78. }
  79. }
  80. class MeetingConfigProcessModel {
  81. String? name;
  82. String? id;
  83. String? application;
  84. String? applicationName;
  85. String? alias;
  86. MeetingConfigProcessModel(
  87. {this.id, this.name, this.application, this.applicationName, this.alias});
  88. MeetingConfigProcessModel.fromJson(Map<String, dynamic> json) {
  89. id = json['id'];
  90. name = json['name'];
  91. application = json['application'];
  92. applicationName = json['applicationName'];
  93. alias = json['alias'];
  94. }
  95. Map<String, dynamic> toJson() {
  96. final Map<String, dynamic> data = <String, dynamic>{};
  97. data['id'] = id;
  98. data['name'] = name;
  99. data['application'] = application;
  100. data['applicationName'] = applicationName;
  101. data['alias'] = alias;
  102. return data;
  103. }
  104. }