TUIRoomInfo.fromJson constructor

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

Implementation

TUIRoomInfo.fromJson(Map<String, dynamic> dataMap) {
  roomId = dataMap["room_id"];
  ownerId = dataMap["owner_id"];
  ownerName = dataMap["owner_name"];
  ownerAvatarUrl = dataMap["owner_avatar_url"];
  roomType = TUIRoomTypeExt.fromValue(dataMap["room_type"]);
  name = dataMap["room_name"];
  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"];
  password = dataMap["password"] ?? "";
}