"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.instanceOfMicrosoftEntraProviderUser = instanceOfMicrosoftEntraProviderUser;
exports.MicrosoftEntraProviderUserFromJSON = MicrosoftEntraProviderUserFromJSON;
exports.MicrosoftEntraProviderUserFromJSONTyped = MicrosoftEntraProviderUserFromJSONTyped;
exports.MicrosoftEntraProviderUserToJSON = MicrosoftEntraProviderUserToJSON;
exports.MicrosoftEntraProviderUserToJSONTyped = MicrosoftEntraProviderUserToJSONTyped;
const PartialUser_1 = require("./PartialUser");
/**
 * Check if a given object implements the MicrosoftEntraProviderUser interface.
 */
function instanceOfMicrosoftEntraProviderUser(value) {
    if (!('id' in value) || value['id'] === undefined)
        return false;
    if (!('microsoftId' in value) || value['microsoftId'] === 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 MicrosoftEntraProviderUserFromJSON(json) {
    return MicrosoftEntraProviderUserFromJSONTyped(json, false);
}
function MicrosoftEntraProviderUserFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'id': json['id'],
        'microsoftId': json['microsoft_id'],
        'user': json['user'],
        'userObj': (0, PartialUser_1.PartialUserFromJSON)(json['user_obj']),
        'provider': json['provider'],
        'attributes': json['attributes'],
    };
}
function MicrosoftEntraProviderUserToJSON(json) {
    return MicrosoftEntraProviderUserToJSONTyped(json, false);
}
function MicrosoftEntraProviderUserToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'microsoft_id': value['microsoftId'],
        'user': value['user'],
        'provider': value['provider'],
    };
}
//# sourceMappingURL=MicrosoftEntraProviderUser.js.map