"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2025.10.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.instanceOfMicrosoftEntraProviderGroup = instanceOfMicrosoftEntraProviderGroup;
exports.MicrosoftEntraProviderGroupFromJSON = MicrosoftEntraProviderGroupFromJSON;
exports.MicrosoftEntraProviderGroupFromJSONTyped = MicrosoftEntraProviderGroupFromJSONTyped;
exports.MicrosoftEntraProviderGroupToJSON = MicrosoftEntraProviderGroupToJSON;
exports.MicrosoftEntraProviderGroupToJSONTyped = MicrosoftEntraProviderGroupToJSONTyped;
const UserGroup_1 = require("./UserGroup");
/**
 * Check if a given object implements the MicrosoftEntraProviderGroup interface.
 */
function instanceOfMicrosoftEntraProviderGroup(value) {
    if (!('id' in value) || value['id'] === undefined)
        return false;
    if (!('microsoftId' in value) || value['microsoftId'] === undefined)
        return false;
    if (!('group' in value) || value['group'] === undefined)
        return false;
    if (!('groupObj' in value) || value['groupObj'] === undefined)
        return false;
    if (!('provider' in value) || value['provider'] === undefined)
        return false;
    if (!('attributes' in value) || value['attributes'] === undefined)
        return false;
    return true;
}
function MicrosoftEntraProviderGroupFromJSON(json) {
    return MicrosoftEntraProviderGroupFromJSONTyped(json, false);
}
function MicrosoftEntraProviderGroupFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'id': json['id'],
        'microsoftId': json['microsoft_id'],
        'group': json['group'],
        'groupObj': (0, UserGroup_1.UserGroupFromJSON)(json['group_obj']),
        'provider': json['provider'],
        'attributes': json['attributes'],
    };
}
function MicrosoftEntraProviderGroupToJSON(json) {
    return MicrosoftEntraProviderGroupToJSONTyped(json, false);
}
function MicrosoftEntraProviderGroupToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'microsoft_id': value['microsoftId'],
        'group': value['group'],
        'provider': value['provider'],
    };
}
//# sourceMappingURL=MicrosoftEntraProviderGroup.js.map