APIServerConfig.fromJson constructor

APIServerConfig.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory APIServerConfig.fromJson(Map<String, dynamic> json) {
  return APIServerConfig(
    name: json['name'],
    version: json['version'],
    address: json['address'],
    port: json['port'],
    securePort: json['securePort'],
    domains: json['domains'],
    letsEncrypt: json['letsEncrypt'],
    letsEncryptProduction: json['letsEncryptProduction'],
    letsEncryptDirectory: json['letsEncryptDirectory'],
    cookieless: json['cookieless'],
    useSessionID: json['useSessionID'],
    hotReload: json['hotReload'],
    totalWorkers: json['totalWorkers'],
    apiCacheControl: json['apiCacheControl'],
    staticFilesCacheControl: json['staticFilesCacheControl'],
    cacheStaticFilesResponses: json['cacheStaticFilesResponses'],
    logToConsole: json['logToConsole'],
    logQueue: json['logQueue'],
    args: json['args'],
  );
}