EMGroup.fromJson constructor

EMGroup.fromJson(
  1. Map map
)

Implementation

factory EMGroup.fromJson(Map map) {
  return EMGroup._private()
    .._groupId = map['groupId']
    .._name = map['name']
    .._description = map['desc']
    .._owner = map['owner']
    .._announcement = map['announcement']
    .._memberCount = map['memberCount']
    .._memberList = map['memberList']
    .._adminList = map['adminList']
    .._blockList = map['blockList']
    .._muteList = map['muteList']
    .._sharedFileList = map['sharedFileList']
    .._noticeEnable = map.boolValue('noticeEnable')
    .._messageBlocked = map.boolValue('messageBlocked')
    .._isAllMemberMuted = map.boolValue('isAllMemberMuted')
    .._options = EMGroupOptions.fromJson(map['options'])
    .._permissionType = EMGroup.permissionTypeFromInt(map['permissionType']);
}