"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2026.2.0-rc5
 * Contact: hello@goauthentik.io
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfConfig = instanceOfConfig;
exports.ConfigFromJSON = ConfigFromJSON;
exports.ConfigFromJSONTyped = ConfigFromJSONTyped;
exports.ConfigToJSON = ConfigToJSON;
exports.ConfigToJSONTyped = ConfigToJSONTyped;
const ErrorReportingConfig_1 = require("./ErrorReportingConfig");
const CapabilitiesEnum_1 = require("./CapabilitiesEnum");
/**
 * Check if a given object implements the Config interface.
 */
function instanceOfConfig(value) {
    if (!('errorReporting' in value) || value['errorReporting'] === undefined)
        return false;
    if (!('capabilities' in value) || value['capabilities'] === undefined)
        return false;
    if (!('cacheTimeout' in value) || value['cacheTimeout'] === undefined)
        return false;
    if (!('cacheTimeoutFlows' in value) || value['cacheTimeoutFlows'] === undefined)
        return false;
    if (!('cacheTimeoutPolicies' in value) || value['cacheTimeoutPolicies'] === undefined)
        return false;
    return true;
}
function ConfigFromJSON(json) {
    return ConfigFromJSONTyped(json, false);
}
function ConfigFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'errorReporting': (0, ErrorReportingConfig_1.ErrorReportingConfigFromJSON)(json['error_reporting']),
        'capabilities': (json['capabilities'].map(CapabilitiesEnum_1.CapabilitiesEnumFromJSON)),
        'cacheTimeout': json['cache_timeout'],
        'cacheTimeoutFlows': json['cache_timeout_flows'],
        'cacheTimeoutPolicies': json['cache_timeout_policies'],
    };
}
function ConfigToJSON(json) {
    return ConfigToJSONTyped(json, false);
}
function ConfigToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'error_reporting': (0, ErrorReportingConfig_1.ErrorReportingConfigToJSON)(value['errorReporting']),
        'capabilities': (value['capabilities'].map(CapabilitiesEnum_1.CapabilitiesEnumToJSON)),
        'cache_timeout': value['cacheTimeout'],
        'cache_timeout_flows': value['cacheTimeoutFlows'],
        'cache_timeout_policies': value['cacheTimeoutPolicies'],
    };
}
//# sourceMappingURL=Config.js.map