/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2026.5.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.
 */

/**
 * MicrosoftEntraProviderGroup Serializer
 * @export
 * @interface MicrosoftEntraProviderGroupRequest
 */
export interface MicrosoftEntraProviderGroupRequest {
    /**
     *
     * @type {string}
     * @memberof MicrosoftEntraProviderGroupRequest
     */
    microsoftId: string;
    /**
     *
     * @type {string}
     * @memberof MicrosoftEntraProviderGroupRequest
     */
    group: string;
    /**
     *
     * @type {number}
     * @memberof MicrosoftEntraProviderGroupRequest
     */
    provider: number;
}

/**
 * Check if a given object implements the MicrosoftEntraProviderGroupRequest interface.
 */
export function instanceOfMicrosoftEntraProviderGroupRequest(
    value: object,
): value is MicrosoftEntraProviderGroupRequest {
    if (!("microsoftId" in value) || value["microsoftId"] === undefined) return false;
    if (!("group" in value) || value["group"] === undefined) return false;
    if (!("provider" in value) || value["provider"] === undefined) return false;
    return true;
}

export function MicrosoftEntraProviderGroupRequestFromJSON(
    json: any,
): MicrosoftEntraProviderGroupRequest {
    return MicrosoftEntraProviderGroupRequestFromJSONTyped(json, false);
}

export function MicrosoftEntraProviderGroupRequestFromJSONTyped(
    json: any,
    ignoreDiscriminator: boolean,
): MicrosoftEntraProviderGroupRequest {
    if (json == null) {
        return json;
    }
    return {
        microsoftId: json["microsoft_id"],
        group: json["group"],
        provider: json["provider"],
    };
}

export function MicrosoftEntraProviderGroupRequestToJSON(
    json: any,
): MicrosoftEntraProviderGroupRequest {
    return MicrosoftEntraProviderGroupRequestToJSONTyped(json, false);
}

export function MicrosoftEntraProviderGroupRequestToJSONTyped(
    value?: MicrosoftEntraProviderGroupRequest | null,
    ignoreDiscriminator: boolean = false,
): any {
    if (value == null) {
        return value;
    }

    return {
        microsoft_id: value["microsoftId"],
        group: value["group"],
        provider: value["provider"],
    };
}
