toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  Map<String, dynamic> map = {};

  if (enableAutoAway != null) {
    map['enableAutoAway'] = enableAutoAway;
  }
  if (idleTimeoutLimit != null) {
    map['idleTimeoutLimit'] = idleTimeoutLimit;
  }
  if (desktopNotificationDuration != null) {
    map['desktopNotificationDuration'] = desktopNotificationDuration;
  }
  if (audioNotifications != null) {
    map['audioNotifications'] = audioNotifications;
  }
  if (desktopNotifications != null) {
    map['desktopNotifications'] = desktopNotifications;
  }
  if (mobileNotifications != null) {
    map['mobileNotifications'] = mobileNotifications;
  }
  if (unreadAlert != null) {
    map['unreadAlert'] = unreadAlert;
  }
  if (useEmojis != null) {
    map['useEmojis'] = useEmojis;
  }
  if (convertAsciiEmoji != null) {
    map['convertAsciiEmoji'] = convertAsciiEmoji;
  }
  if (autoImageLoad != null) {
    map['autoImageLoad'] = autoImageLoad;
  }
  if (saveMobileBandwidth != null) {
    map['saveMobileBandwidth'] = saveMobileBandwidth;
  }
  if (collapseMediaByDefault != null) {
    map['collapseMediaByDefault'] = collapseMediaByDefault;
  }
  if (hideUsernames != null) {
    map['hideUsernames'] = hideUsernames;
  }
  if (hideRoles != null) {
    map['hideRoles'] = hideRoles;
  }
  if (hideFlexTab != null) {
    map['hideFlexTab'] = hideFlexTab;
  }
  if (hideAvatars != null) {
    map['hideAvatars'] = hideAvatars;
  }
  if (roomsListExhibitionMode != null) {
    map['roomsListExhibitionMode'] = roomsListExhibitionMode;
  }
  if (sidebarViewMode != null) {
    map['sidebarViewMode'] = sidebarViewMode;
  }
  if (sidebarHideAvatar != null) {
    map['sidebarHideAvatar'] = sidebarHideAvatar;
  }
  if (sidebarShowUnread != null) {
    map['sidebarShowUnread'] = sidebarShowUnread;
  }
  if (sidebarShowFavorites != null) {
    map['sidebarShowFavorites'] = sidebarShowFavorites;
  }
  if (sendOnEnter != null) {
    map['sendOnEnter'] = sendOnEnter;
  }
  if (messageViewMode != null) {
    map['messageViewMode'] = messageViewMode;
  }
  if (emailNotificationMode != null) {
    map['emailNotificationMode'] = emailNotificationMode;
  }
  if (roomCounterSidebar != null) {
    map['roomCounterSidebar'] = roomCounterSidebar;
  }
  if (newRoomNotification != null) {
    map['newRoomNotification'] = newRoomNotification;
  }
  if (newMessageNotification != null) {
    map['newMessageNotification'] = newMessageNotification;
  }
  if (muteFocusedConversations != null) {
    map['muteFocusedConversations'] = muteFocusedConversations;
  }
  if (notificationsSoundVolume != null) {
    map['notificationsSoundVolume'] = notificationsSoundVolume;
  }

  return map;
}