toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _json = <String, dynamic>{};
  if (siteName != null) {
    _json[r'SiteName'] = siteName;
  }
  if (maxUsersPerTeam != null) {
    _json[r'MaxUsersPerTeam'] = maxUsersPerTeam;
  }
  if (enableTeamCreation != null) {
    _json[r'EnableTeamCreation'] = enableTeamCreation;
  }
  if (enableUserCreation != null) {
    _json[r'EnableUserCreation'] = enableUserCreation;
  }
  if (enableOpenServer != null) {
    _json[r'EnableOpenServer'] = enableOpenServer;
  }
  if (restrictCreationToDomains != null) {
    _json[r'RestrictCreationToDomains'] = restrictCreationToDomains;
  }
  if (enableCustomBrand != null) {
    _json[r'EnableCustomBrand'] = enableCustomBrand;
  }
  if (customBrandText != null) {
    _json[r'CustomBrandText'] = customBrandText;
  }
  if (customDescriptionText != null) {
    _json[r'CustomDescriptionText'] = customDescriptionText;
  }
  if (restrictDirectMessage != null) {
    _json[r'RestrictDirectMessage'] = restrictDirectMessage;
  }
  if (restrictTeamInvite != null) {
    _json[r'RestrictTeamInvite'] = restrictTeamInvite;
  }
  if (restrictPublicChannelManagement != null) {
    _json[r'RestrictPublicChannelManagement'] = restrictPublicChannelManagement;
  }
  if (restrictPrivateChannelManagement != null) {
    _json[r'RestrictPrivateChannelManagement'] = restrictPrivateChannelManagement;
  }
  if (restrictPublicChannelCreation != null) {
    _json[r'RestrictPublicChannelCreation'] = restrictPublicChannelCreation;
  }
  if (restrictPrivateChannelCreation != null) {
    _json[r'RestrictPrivateChannelCreation'] = restrictPrivateChannelCreation;
  }
  if (restrictPublicChannelDeletion != null) {
    _json[r'RestrictPublicChannelDeletion'] = restrictPublicChannelDeletion;
  }
  if (restrictPrivateChannelDeletion != null) {
    _json[r'RestrictPrivateChannelDeletion'] = restrictPrivateChannelDeletion;
  }
  if (userStatusAwayTimeout != null) {
    _json[r'UserStatusAwayTimeout'] = userStatusAwayTimeout;
  }
  if (maxChannelsPerTeam != null) {
    _json[r'MaxChannelsPerTeam'] = maxChannelsPerTeam;
  }
  if (maxNotificationsPerChannel != null) {
    _json[r'MaxNotificationsPerChannel'] = maxNotificationsPerChannel;
  }
  return _json;
}