"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.instanceOfSSFProvider = instanceOfSSFProvider;
exports.SSFProviderFromJSON = SSFProviderFromJSON;
exports.SSFProviderFromJSONTyped = SSFProviderFromJSONTyped;
exports.SSFProviderToJSON = SSFProviderToJSON;
exports.SSFProviderToJSONTyped = SSFProviderToJSONTyped;
const Token_1 = require("./Token");
/**
 * Check if a given object implements the SSFProvider interface.
 */
function instanceOfSSFProvider(value) {
    if (!('pk' in value) || value['pk'] === undefined)
        return false;
    if (!('name' in value) || value['name'] === undefined)
        return false;
    if (!('component' in value) || value['component'] === undefined)
        return false;
    if (!('verboseName' in value) || value['verboseName'] === undefined)
        return false;
    if (!('verboseNamePlural' in value) || value['verboseNamePlural'] === undefined)
        return false;
    if (!('metaModelName' in value) || value['metaModelName'] === undefined)
        return false;
    if (!('signingKey' in value) || value['signingKey'] === undefined)
        return false;
    if (!('tokenObj' in value) || value['tokenObj'] === undefined)
        return false;
    if (!('ssfUrl' in value) || value['ssfUrl'] === undefined)
        return false;
    return true;
}
function SSFProviderFromJSON(json) {
    return SSFProviderFromJSONTyped(json, false);
}
function SSFProviderFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'pk': json['pk'],
        'name': json['name'],
        'component': json['component'],
        'verboseName': json['verbose_name'],
        'verboseNamePlural': json['verbose_name_plural'],
        'metaModelName': json['meta_model_name'],
        'signingKey': json['signing_key'],
        'tokenObj': (0, Token_1.TokenFromJSON)(json['token_obj']),
        'oidcAuthProviders': json['oidc_auth_providers'] == null ? undefined : json['oidc_auth_providers'],
        'ssfUrl': json['ssf_url'],
        'eventRetention': json['event_retention'] == null ? undefined : json['event_retention'],
    };
}
function SSFProviderToJSON(json) {
    return SSFProviderToJSONTyped(json, false);
}
function SSFProviderToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'name': value['name'],
        'signing_key': value['signingKey'],
        'oidc_auth_providers': value['oidcAuthProviders'],
        'event_retention': value['eventRetention'],
    };
}
//# sourceMappingURL=SSFProvider.js.map