"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.instanceOfSCIMSourceRequest = instanceOfSCIMSourceRequest;
exports.SCIMSourceRequestFromJSON = SCIMSourceRequestFromJSON;
exports.SCIMSourceRequestFromJSONTyped = SCIMSourceRequestFromJSONTyped;
exports.SCIMSourceRequestToJSON = SCIMSourceRequestToJSON;
exports.SCIMSourceRequestToJSONTyped = SCIMSourceRequestToJSONTyped;
/**
 * Check if a given object implements the SCIMSourceRequest interface.
 */
function instanceOfSCIMSourceRequest(value) {
    if (!('name' in value) || value['name'] === undefined)
        return false;
    if (!('slug' in value) || value['slug'] === undefined)
        return false;
    return true;
}
function SCIMSourceRequestFromJSON(json) {
    return SCIMSourceRequestFromJSONTyped(json, false);
}
function SCIMSourceRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        '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'],
        'userPathTemplate': json['user_path_template'] == null ? undefined : json['user_path_template'],
    };
}
function SCIMSourceRequestToJSON(json) {
    return SCIMSourceRequestToJSONTyped(json, false);
}
function SCIMSourceRequestToJSONTyped(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=SCIMSourceRequest.js.map