"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.instanceOfSCIMSourceUser = instanceOfSCIMSourceUser;
exports.SCIMSourceUserFromJSON = SCIMSourceUserFromJSON;
exports.SCIMSourceUserFromJSONTyped = SCIMSourceUserFromJSONTyped;
exports.SCIMSourceUserToJSON = SCIMSourceUserToJSON;
exports.SCIMSourceUserToJSONTyped = SCIMSourceUserToJSONTyped;
const PartialUser_1 = require("./PartialUser");
/**
 * Check if a given object implements the SCIMSourceUser interface.
 */
function instanceOfSCIMSourceUser(value) {
    if (!('externalId' in value) || value['externalId'] === undefined)
        return false;
    if (!('user' in value) || value['user'] === undefined)
        return false;
    if (!('userObj' in value) || value['userObj'] === undefined)
        return false;
    if (!('source' in value) || value['source'] === undefined)
        return false;
    return true;
}
function SCIMSourceUserFromJSON(json) {
    return SCIMSourceUserFromJSONTyped(json, false);
}
function SCIMSourceUserFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'id': json['id'] == null ? undefined : json['id'],
        'externalId': json['external_id'],
        'user': json['user'],
        'userObj': (0, PartialUser_1.PartialUserFromJSON)(json['user_obj']),
        'source': json['source'],
        'attributes': json['attributes'] == null ? undefined : json['attributes'],
    };
}
function SCIMSourceUserToJSON(json) {
    return SCIMSourceUserToJSONTyped(json, false);
}
function SCIMSourceUserToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'id': value['id'],
        'external_id': value['externalId'],
        'user': value['user'],
        'source': value['source'],
        'attributes': value['attributes'],
    };
}
//# sourceMappingURL=SCIMSourceUser.js.map