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

/**
 * GoogleWorkspaceProviderUser Serializer
 * @export
 * @interface GoogleWorkspaceProviderUserRequest
 */
export interface GoogleWorkspaceProviderUserRequest {
    /**
     *
     * @type {string}
     * @memberof GoogleWorkspaceProviderUserRequest
     */
    googleId: string;
    /**
     *
     * @type {number}
     * @memberof GoogleWorkspaceProviderUserRequest
     */
    user: number;
    /**
     *
     * @type {number}
     * @memberof GoogleWorkspaceProviderUserRequest
     */
    provider: number;
}

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

export function GoogleWorkspaceProviderUserRequestFromJSON(
    json: any,
): GoogleWorkspaceProviderUserRequest {
    return GoogleWorkspaceProviderUserRequestFromJSONTyped(json, false);
}

export function GoogleWorkspaceProviderUserRequestFromJSONTyped(
    json: any,
    ignoreDiscriminator: boolean,
): GoogleWorkspaceProviderUserRequest {
    if (json == null) {
        return json;
    }
    return {
        googleId: json["google_id"],
        user: json["user"],
        provider: json["provider"],
    };
}

export function GoogleWorkspaceProviderUserRequestToJSON(
    json: any,
): GoogleWorkspaceProviderUserRequest {
    return GoogleWorkspaceProviderUserRequestToJSONTyped(json, false);
}

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

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