toJson method
Implementation
Map<String, dynamic> toJson() => {
'name': name,
'version': version,
'address': address,
'port': port,
'securePort': securePort,
'domains': domainsRoots.map((k, v) => MapEntry(k, v.path)),
'letsEncrypt': letsEncrypt,
'letsEncryptProduction': letsEncryptProduction,
if (letsEncryptDirectory != null)
'letsEncryptDirectory': letsEncryptDirectory?.path,
'cookieless': cookieless,
'useSessionID': useSessionID,
'hotReload': hotReload,
'totalWorkers': totalWorkers,
'apiCacheControl': apiCacheControl,
'staticFilesCacheControl': staticFilesCacheControl,
'cacheStaticFilesResponses': cacheStaticFilesResponses,
'staticFilesCacheMaxMemorySize': staticFilesCacheMaxMemorySize,
'staticFilesCacheMaxContentLength': staticFilesCacheMaxContentLength,
'logToConsole': logToConsole,
'logQueue': logQueue,
if (args.isNotEmpty) 'args': args.toList(),
};