EMChatRoom.fromJson constructor
EMChatRoom.fromJson(- Map<String, dynamic> map
)
Implementation
factory EMChatRoom.fromJson(Map<String, dynamic> map) {
return EMChatRoom._private(
roomId: map["roomId"],
name: map["name"],
description: map["desc"],
owner: map["owner"],
memberCount: map["memberCount"],
maxUsers: map["maxUsers"],
adminList: map.getList("adminList"),
memberList: map.getList("memberList"),
blockList: map.getList("blockList"),
muteList: map.getList("muteList"),
announcement: map["announcement"],
permissionType: chatRoomPermissionTypeFromInt(map["permissionType"]),
isAllMemberMuted: map.boolValue("isAllMemberMuted"));
}