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

/**
 * GoogleWorkspaceProviderGroup Serializer
 * @export
 * @interface GoogleWorkspaceProviderGroupRequest
 */
export interface GoogleWorkspaceProviderGroupRequest {
    /**
     *
     * @type {string}
     * @memberof GoogleWorkspaceProviderGroupRequest
     */
    googleId: string;
    /**
     *
     * @type {string}
     * @memberof GoogleWorkspaceProviderGroupRequest
     */
    group: string;
    /**
     *
     * @type {number}
     * @memberof GoogleWorkspaceProviderGroupRequest
     */
    provider: number;
}

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

export function GoogleWorkspaceProviderGroupRequestFromJSONTyped(
    json: any,
    ignoreDiscriminator: boolean,
): GoogleWorkspaceProviderGroupRequest {
    if (json == null) {
        return json;
    }
    return {
        googleId: json["google_id"],
        group: json["group"],
        provider: json["provider"],
    };
}

export function GoogleWorkspaceProviderGroupRequestToJSON(
    json: any,
): GoogleWorkspaceProviderGroupRequest {
    return GoogleWorkspaceProviderGroupRequestToJSONTyped(json, false);
}

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

    return {
        google_id: value["googleId"],
        group: value["group"],
        provider: value["provider"],
    };
}
