"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2026.2.2-rc1
 * 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.instanceOfSCIMSource = instanceOfSCIMSource;
exports.SCIMSourceFromJSON = SCIMSourceFromJSON;
exports.SCIMSourceFromJSONTyped = SCIMSourceFromJSONTyped;
exports.SCIMSourceToJSON = SCIMSourceToJSON;
exports.SCIMSourceToJSONTyped = SCIMSourceToJSONTyped;
const Token_1 = require("./Token");
/**
 * Check if a given object implements the SCIMSource interface.
 */
function instanceOfSCIMSource(value) {
    if (!('pk' in value) || value['pk'] === undefined)
        return false;
    if (!('name' in value) || value['name'] === undefined)
        return false;
    if (!('slug' in value) || value['slug'] === 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 (!('managed' in value) || value['managed'] === undefined)
        return false;
    if (!('rootUrl' in value) || value['rootUrl'] === undefined)
        return false;
    if (!('tokenObj' in value) || value['tokenObj'] === undefined)
        return false;
    return true;
}
function SCIMSourceFromJSON(json) {
    return SCIMSourceFromJSONTyped(json, false);
}
function SCIMSourceFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'pk': json['pk'],
        'name': json['name'],
        'slug': json['slug'],
        'enabled': json['enabled'] == null ? undefined : json['enabled'],
        'userPropertyMappings': json['user_property_mappings'] == null ? undefined : json['user_property_mappings'],
        'groupPropertyMappings': json['group_property_mappings'] == null ? undefined : json['group_property_mappings'],
        'component': json['component'],
        'verboseName': json['verbose_name'],
        'verboseNamePlural': json['verbose_name_plural'],
        'metaModelName': json['meta_model_name'],
        'managed': json['managed'],
        'userPathTemplate': json['user_path_template'] == null ? undefined : json['user_path_template'],
        'rootUrl': json['root_url'],
        'tokenObj': (0, Token_1.TokenFromJSON)(json['token_obj']),
    };
}
function SCIMSourceToJSON(json) {
    return SCIMSourceToJSONTyped(json, false);
}
function SCIMSourceToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'name': value['name'],
        'slug': value['slug'],
        'enabled': value['enabled'],
        'user_property_mappings': value['userPropertyMappings'],
        'group_property_mappings': value['groupPropertyMappings'],
        'user_path_template': value['userPathTemplate'],
    };
}
//# sourceMappingURL=SCIMSource.js.map