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

/**
 * Group Source Connection
 * @export
 * @interface PatchedGroupOAuthSourceConnectionRequest
 */
export interface PatchedGroupOAuthSourceConnectionRequest {
    /**
     *
     * @type {string}
     * @memberof PatchedGroupOAuthSourceConnectionRequest
     */
    group?: string;
    /**
     *
     * @type {string}
     * @memberof PatchedGroupOAuthSourceConnectionRequest
     */
    source?: string;
    /**
     *
     * @type {string}
     * @memberof PatchedGroupOAuthSourceConnectionRequest
     */
    identifier?: string;
}

/**
 * Check if a given object implements the PatchedGroupOAuthSourceConnectionRequest interface.
 */
export function instanceOfPatchedGroupOAuthSourceConnectionRequest(
    value: object,
): value is PatchedGroupOAuthSourceConnectionRequest {
    return true;
}

export function PatchedGroupOAuthSourceConnectionRequestFromJSON(
    json: any,
): PatchedGroupOAuthSourceConnectionRequest {
    return PatchedGroupOAuthSourceConnectionRequestFromJSONTyped(json, false);
}

export function PatchedGroupOAuthSourceConnectionRequestFromJSONTyped(
    json: any,
    ignoreDiscriminator: boolean,
): PatchedGroupOAuthSourceConnectionRequest {
    if (json == null) {
        return json;
    }
    return {
        group: json["group"] == null ? undefined : json["group"],
        source: json["source"] == null ? undefined : json["source"],
        identifier: json["identifier"] == null ? undefined : json["identifier"],
    };
}

export function PatchedGroupOAuthSourceConnectionRequestToJSON(
    json: any,
): PatchedGroupOAuthSourceConnectionRequest {
    return PatchedGroupOAuthSourceConnectionRequestToJSONTyped(json, false);
}

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

    return {
        group: value["group"],
        source: value["source"],
        identifier: value["identifier"],
    };
}
