"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.instanceOfSourceType = instanceOfSourceType;
exports.SourceTypeFromJSON = SourceTypeFromJSON;
exports.SourceTypeFromJSONTyped = SourceTypeFromJSONTyped;
exports.SourceTypeToJSON = SourceTypeToJSON;
exports.SourceTypeToJSONTyped = SourceTypeToJSONTyped;
/**
 * Check if a given object implements the SourceType interface.
 */
function instanceOfSourceType(value) {
    if (!('name' in value) || value['name'] === undefined)
        return false;
    if (!('verboseName' in value) || value['verboseName'] === undefined)
        return false;
    if (!('urlsCustomizable' in value) || value['urlsCustomizable'] === undefined)
        return false;
    if (!('requestTokenUrl' in value) || value['requestTokenUrl'] === undefined)
        return false;
    if (!('authorizationUrl' in value) || value['authorizationUrl'] === undefined)
        return false;
    if (!('accessTokenUrl' in value) || value['accessTokenUrl'] === undefined)
        return false;
    if (!('profileUrl' in value) || value['profileUrl'] === undefined)
        return false;
    if (!('oidcWellKnownUrl' in value) || value['oidcWellKnownUrl'] === undefined)
        return false;
    if (!('oidcJwksUrl' in value) || value['oidcJwksUrl'] === undefined)
        return false;
    return true;
}
function SourceTypeFromJSON(json) {
    return SourceTypeFromJSONTyped(json, false);
}
function SourceTypeFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'name': json['name'],
        'verboseName': json['verbose_name'],
        'urlsCustomizable': json['urls_customizable'],
        'requestTokenUrl': json['request_token_url'],
        'authorizationUrl': json['authorization_url'],
        'accessTokenUrl': json['access_token_url'],
        'profileUrl': json['profile_url'],
        'oidcWellKnownUrl': json['oidc_well_known_url'],
        'oidcJwksUrl': json['oidc_jwks_url'],
    };
}
function SourceTypeToJSON(json) {
    return SourceTypeToJSONTyped(json, false);
}
function SourceTypeToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'name': value['name'],
        'verbose_name': value['verboseName'],
        'urls_customizable': value['urlsCustomizable'],
    };
}
//# sourceMappingURL=SourceType.js.map