"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2025.12.0-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.instanceOfSCIMProviderUser = instanceOfSCIMProviderUser;
exports.SCIMProviderUserFromJSON = SCIMProviderUserFromJSON;
exports.SCIMProviderUserFromJSONTyped = SCIMProviderUserFromJSONTyped;
exports.SCIMProviderUserToJSON = SCIMProviderUserToJSON;
exports.SCIMProviderUserToJSONTyped = SCIMProviderUserToJSONTyped;
const PartialUser_1 = require("./PartialUser");
/**
 * Check if a given object implements the SCIMProviderUser interface.
 */
function instanceOfSCIMProviderUser(value) {
    if (!('id' in value) || value['id'] === undefined)
        return false;
    if (!('scimId' in value) || value['scimId'] === undefined)
        return false;
    if (!('user' in value) || value['user'] === undefined)
        return false;
    if (!('userObj' in value) || value['userObj'] === undefined)
        return false;
    if (!('provider' in value) || value['provider'] === undefined)
        return false;
    if (!('attributes' in value) || value['attributes'] === undefined)
        return false;
    return true;
}
function SCIMProviderUserFromJSON(json) {
    return SCIMProviderUserFromJSONTyped(json, false);
}
function SCIMProviderUserFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'id': json['id'],
        'scimId': json['scim_id'],
        'user': json['user'],
        'userObj': (0, PartialUser_1.PartialUserFromJSON)(json['user_obj']),
        'provider': json['provider'],
        'attributes': json['attributes'],
    };
}
function SCIMProviderUserToJSON(json) {
    return SCIMProviderUserToJSONTyped(json, false);
}
function SCIMProviderUserToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'scim_id': value['scimId'],
        'user': value['user'],
        'provider': value['provider'],
    };
}
//# sourceMappingURL=SCIMProviderUser.js.map