TUIRoomInfo.fromJson constructor

TUIRoomInfo.fromJson(
  1. Map<String, dynamic> dataMap
)

Implementation

TUIRoomInfo.fromJson(Map<String, dynamic> dataMap) {
  roomId = dataMap["room_id"];
  ownerId = dataMap["room_owner"];
  roomType = TUIRoomTypeExt.fromValue(dataMap["room_type"]);
  name = dataMap["room_name"];
  speechMode = TUISpeechModeExt.fromValue(dataMap["speech_mode"]);
  isCameraDisableForAllUser = dataMap["camera_disable"];
  isMicrophoneDisableForAllUser = dataMap["microphone_disable"];
  isScreenShareDisableForAllUser = dataMap["screen_share_disable"];
  isMessageDisableForAllUser = dataMap["message_disable"];
  isSeatEnabled = dataMap["is_seat_enabled"];
  seatMode = TUISeatModeExt.fromValue(dataMap["seat_mode"]);
  maxSeatCount = dataMap["max_seat_count"];
  enableCDNStreaming = dataMap["cdn_streaming_disable"];
  cdnStreamDomain = dataMap["cdn_stream_domain"];
  createTime = dataMap["create_time"];
  memberCount = dataMap["room_member_count"];
}