/* 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.
 */

/**
 * SCIMProviderGroup Serializer
 * @export
 * @interface SCIMProviderGroupRequest
 */
export interface SCIMProviderGroupRequest {
    /**
     *
     * @type {string}
     * @memberof SCIMProviderGroupRequest
     */
    scimId: string;
    /**
     *
     * @type {string}
     * @memberof SCIMProviderGroupRequest
     */
    group: string;
    /**
     *
     * @type {number}
     * @memberof SCIMProviderGroupRequest
     */
    provider: number;
}

/**
 * Check if a given object implements the SCIMProviderGroupRequest interface.
 */
export function instanceOfSCIMProviderGroupRequest(
    value: object,
): value is SCIMProviderGroupRequest {
    if (!("scimId" in value) || value["scimId"] === 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 SCIMProviderGroupRequestFromJSON(json: any): SCIMProviderGroupRequest {
    return SCIMProviderGroupRequestFromJSONTyped(json, false);
}

export function SCIMProviderGroupRequestFromJSONTyped(
    json: any,
    ignoreDiscriminator: boolean,
): SCIMProviderGroupRequest {
    if (json == null) {
        return json;
    }
    return {
        scimId: json["scim_id"],
        group: json["group"],
        provider: json["provider"],
    };
}

export function SCIMProviderGroupRequestToJSON(json: any): SCIMProviderGroupRequest {
    return SCIMProviderGroupRequestToJSONTyped(json, false);
}

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

    return {
        scim_id: value["scimId"],
        group: value["group"],
        provider: value["provider"],
    };
}
