Preferences.fromMap constructor

Preferences.fromMap(
  1. Map? json
)

Implementation

Preferences.fromMap(Map<dynamic, dynamic>? json) {
  if (json != null) {
    enableAutoAway = json['enableAutoAway'];
    idleTimeoutLimit = json['idleTimeoutLimit'];
    desktopNotificationDuration = json['desktopNotificationDuration'];
    audioNotifications = json['audioNotifications'];
    desktopNotifications = json['desktopNotifications'];
    mobileNotifications = json['mobileNotifications'];
    unreadAlert = json['unreadAlert'];
    useEmojis = json['useEmojis'];
    convertAsciiEmoji = json['convertAsciiEmoji'];
    autoImageLoad = json['autoImageLoad'];
    saveMobileBandwidth = json['saveMobileBandwidth'];
    collapseMediaByDefault = json['collapseMediaByDefault'];
    hideUsernames = json['hideUsernames'];
    hideRoles = json['hideRoles'];
    hideFlexTab = json['hideFlexTab'];
    hideAvatars = json['hideAvatars'];
    roomsListExhibitionMode = json['roomsListExhibitionMode'];
    sidebarViewMode = json['sidebarViewMode'];
    sidebarHideAvatar = json['sidebarHideAvatar'];
    sidebarShowUnread = json['sidebarShowUnread'];
    sidebarShowFavorites = json['sidebarShowFavorites'];
    sendOnEnter = json['sendOnEnter'];
    messageViewMode = json['messageViewMode'];
    emailNotificationMode = json['emailNotificationMode'];
    roomCounterSidebar = json['roomCounterSidebar'];
    newRoomNotification = json['newRoomNotification'];
    newMessageNotification = json['newMessageNotification'];
    muteFocusedConversations = json['muteFocusedConversations'];
    notificationsSoundVolume = json['notificationsSoundVolume'];
  }
}