Implementation
MeetParams.fromJson(Map<String, dynamic> map)
: language = map['option'] != null ? map['option']['language'] : 'zh_CN',
localOpenMic = setMapDefault(map['option'], 'localOpenMic', true),
localOpenCam = setMapDefault(map['option'], 'localOpenCam', true),
localOpenSpeaker =
setMapDefault(map['option'], 'localOpenSpeaker', true),
bottomMic =
setListDefault(map['custom'], 'bottomMic', true), // "底部工具栏隐藏-麦克风",
bottomCamera = setListDefault(
map['custom'], 'bottomCamera', true), // "底部工具栏隐藏-摄像头",
bottomShare =
setListDefault(map['custom'], 'bottomShare', true), // "底部工具栏隐藏-共享",
bottomMember = setListDefault(
map['custom'], 'bottomMember', true), // "底部工具栏隐藏-成员",
bottomMore =
setListDefault(map['custom'], 'bottomMore', true), // "底部工具栏隐藏-更多",
topbarSpeakerSwitch = setListDefault(
map['custom'], 'topbarSpeakerSwitch', true), // "顶部工具栏隐藏-外放",
topbarCameraSwitch = setListDefault(
map['custom'], 'topbarCameraSwitch', true), // "顶部工具栏隐藏-摄像头切换",
topbarMeetingInfo = setListDefault(
map['custom'], 'topbarMeetingInfo', true), // "顶部工具栏隐藏-会议信息",
topbarExitMeeting = setListDefault(
map['custom'], 'topbarExitMeeting', true), // "顶部工具栏隐藏-退出会议",
shareScreen = setListDefault(
map['custom'], 'shareScreen', true), // "共享弹窗隐藏-本地屏幕",
shareOpenedDoc = setListDefault(
map['custom'], 'shareOpenedDoc', true), // "共享弹窗隐藏-已打开文档",
shareCompanyDisk = setListDefault(
map['custom'], 'shareCompanyDisk', true), // "共享弹窗隐藏-企业网盘",
sharePersonDisk = setListDefault(
map['custom'], 'sharePersonDisk', true), // "共享弹窗隐藏-个人网盘",
shareWhiteBoard = setListDefault(
map['custom'], 'shareWhiteBoard', true), // "共享弹窗隐藏-新建白板",
shareAlbum =
setListDefault(map['custom'], 'shareAlbum', true), // "共享弹窗隐藏-手机相册",
moreMiniVideo = setListDefault(
map['custom'], 'moreMiniVideo', true), // "更多弹窗隐藏-小视频",
moreInvite =
setListDefault(map['custom'], 'moreInvite', true), // "更多弹窗隐藏-邀请",
moreStartServerRecord = setListDefault(
map['custom'], 'moreStartServerRecord', true), // "更多弹窗隐藏-云端录制",
moreStopServerRecord = setListDefault(
map['custom'], 'moreStopServerRecord', true), // "更多弹窗隐藏-结束云端录制",
moreLive =
setListDefault(map['custom'], 'moreLive', true), // "更多弹窗隐藏-直播",
moreVote =
setListDefault(map['custom'], 'moreVote', true), // "更多弹窗隐藏-投票",
moreRollcall =
setListDefault(map['custom'], 'moreRollcall', true), // "更多弹窗隐藏-点名",
moreIm = setListDefault(map['custom'], 'moreIm', true), // "更多弹窗隐藏-聊天",
moreVbg =
setListDefault(map['custom'], 'moreVbg', true), // "更多弹窗隐藏-虚拟背景",
moreFloating = setListDefault(
map['custom'], 'moreFloating', true), // "更多弹窗隐藏-浮窗显示",
moreStartCaptions = setListDefault(
map['custom'], 'moreStartCaptions', true), // "更多弹窗隐藏-字幕",
moreStopCaptions = setListDefault(
map['custom'], 'moreStopCaptions', true), // "更多弹窗隐藏-关闭字幕",
moreSetting =
setListDefault(map['custom'], 'moreSetting', true), // "更多弹窗隐藏-设置",
meetingInfoConfurl = setListDefault(
map['custom'], 'meetingInfoConfurl', true), // "会议信息隐藏-会议链接",
meetingInfoCopy = setListDefault(
map['custom'], 'meetingInfoCopy', true), // "会议信息隐藏-复制会议信息",
meetingInfoHostpswd = setListDefault(
map['custom'], 'meetingInfoHostpswd', true), // "会议信息隐藏-主持人密码",
pstn = setListDefault(map['custom'], 'pstn', true), // "功能隐藏-PSTN",
singleTask = map['SingleTask'] ?? true;