toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _json = <String, dynamic>{};
  if (siteURL != null) {
    _json[r'SiteURL'] = siteURL;
  }
  if (listenAddress != null) {
    _json[r'ListenAddress'] = listenAddress;
  }
  if (connectionSecurity != null) {
    _json[r'ConnectionSecurity'] = connectionSecurity;
  }
  if (tLSCertFile != null) {
    _json[r'TLSCertFile'] = tLSCertFile;
  }
  if (tLSKeyFile != null) {
    _json[r'TLSKeyFile'] = tLSKeyFile;
  }
  if (useLetsEncrypt != null) {
    _json[r'UseLetsEncrypt'] = useLetsEncrypt;
  }
  if (letsEncryptCertificateCacheFile != null) {
    _json[r'LetsEncryptCertificateCacheFile'] = letsEncryptCertificateCacheFile;
  }
  if (forward80To443 != null) {
    _json[r'Forward80To443'] = forward80To443;
  }
  if (readTimeout != null) {
    _json[r'ReadTimeout'] = readTimeout;
  }
  if (writeTimeout != null) {
    _json[r'WriteTimeout'] = writeTimeout;
  }
  if (maximumLoginAttempts != null) {
    _json[r'MaximumLoginAttempts'] = maximumLoginAttempts;
  }
  if (segmentDeveloperKey != null) {
    _json[r'SegmentDeveloperKey'] = segmentDeveloperKey;
  }
  if (googleDeveloperKey != null) {
    _json[r'GoogleDeveloperKey'] = googleDeveloperKey;
  }
  if (enableOAuthServiceProvider != null) {
    _json[r'EnableOAuthServiceProvider'] = enableOAuthServiceProvider;
  }
  if (enableIncomingWebhooks != null) {
    _json[r'EnableIncomingWebhooks'] = enableIncomingWebhooks;
  }
  if (enableOutgoingWebhooks != null) {
    _json[r'EnableOutgoingWebhooks'] = enableOutgoingWebhooks;
  }
  if (enableCommands != null) {
    _json[r'EnableCommands'] = enableCommands;
  }
  if (enableOnlyAdminIntegrations != null) {
    _json[r'EnableOnlyAdminIntegrations'] = enableOnlyAdminIntegrations;
  }
  if (enablePostUsernameOverride != null) {
    _json[r'EnablePostUsernameOverride'] = enablePostUsernameOverride;
  }
  if (enablePostIconOverride != null) {
    _json[r'EnablePostIconOverride'] = enablePostIconOverride;
  }
  if (enableTesting != null) {
    _json[r'EnableTesting'] = enableTesting;
  }
  if (enableDeveloper != null) {
    _json[r'EnableDeveloper'] = enableDeveloper;
  }
  if (enableSecurityFixAlert != null) {
    _json[r'EnableSecurityFixAlert'] = enableSecurityFixAlert;
  }
  if (enableInsecureOutgoingConnections != null) {
    _json[r'EnableInsecureOutgoingConnections'] = enableInsecureOutgoingConnections;
  }
  if (enableMultifactorAuthentication != null) {
    _json[r'EnableMultifactorAuthentication'] = enableMultifactorAuthentication;
  }
  if (enforceMultifactorAuthentication != null) {
    _json[r'EnforceMultifactorAuthentication'] = enforceMultifactorAuthentication;
  }
  if (allowCorsFrom != null) {
    _json[r'AllowCorsFrom'] = allowCorsFrom;
  }
  if (sessionLengthWebInDays != null) {
    _json[r'SessionLengthWebInDays'] = sessionLengthWebInDays;
  }
  if (sessionLengthMobileInDays != null) {
    _json[r'SessionLengthMobileInDays'] = sessionLengthMobileInDays;
  }
  if (sessionLengthSSOInDays != null) {
    _json[r'SessionLengthSSOInDays'] = sessionLengthSSOInDays;
  }
  if (sessionCacheInMinutes != null) {
    _json[r'SessionCacheInMinutes'] = sessionCacheInMinutes;
  }
  if (websocketSecurePort != null) {
    _json[r'WebsocketSecurePort'] = websocketSecurePort;
  }
  if (websocketPort != null) {
    _json[r'WebsocketPort'] = websocketPort;
  }
  if (webserverMode != null) {
    _json[r'WebserverMode'] = webserverMode;
  }
  if (enableCustomEmoji != null) {
    _json[r'EnableCustomEmoji'] = enableCustomEmoji;
  }
  if (restrictCustomEmojiCreation != null) {
    _json[r'RestrictCustomEmojiCreation'] = restrictCustomEmojiCreation;
  }
  return _json;
}