toJson method

Map<String, dynamic> toJson()

Converts this configuration to a JSON map.

Implementation

Map<String, dynamic> toJson() => {
  'enabled': enabled,
  'port': port,
  'address': address,
  'writable': writable,
  'enableCache': enableCache,
  'cacheSize': cacheSize,
  'gatewayDomain': gatewayDomain,
  'enableSubdomainGateway': enableSubdomainGateway,
  'subdomainDNSLinkResolver': subdomainDNSLinkResolver,
  'subdomainTLSRedirect': subdomainTLSRedirect,
  'enableTls': enableTls,
  'certificatePath': certificatePath,
  'privateKeyPath': privateKeyPath,
  'certificatePassword': certificatePassword,
  'autoTls': autoTls,
  'autoTlsDomain': autoTlsDomain,
  'autoTlsEmail': autoTlsEmail,
  'autoTlsProvider': autoTlsProvider,
  'autoTlsAcceptTos': autoTlsAcceptTos,
  'autoTlsSANs': autoTlsSANs,
  'tlsPort': tlsPort,
  'redirectHttpToHttps': redirectHttpToHttps,
};