/* 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 PatchedGroupSAMLSourceConnectionRequest
 */
export interface PatchedGroupSAMLSourceConnectionRequest {
    /**
     *
     * @type {string}
     * @memberof PatchedGroupSAMLSourceConnectionRequest
     */
    group?: string;
    /**
     *
     * @type {string}
     * @memberof PatchedGroupSAMLSourceConnectionRequest
     */
    source?: string;
    /**
     *
     * @type {string}
     * @memberof PatchedGroupSAMLSourceConnectionRequest
     */
    identifier?: string;
}

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

export function PatchedGroupSAMLSourceConnectionRequestFromJSON(
    json: any,
): PatchedGroupSAMLSourceConnectionRequest {
    return PatchedGroupSAMLSourceConnectionRequestFromJSONTyped(json, false);
}

export function PatchedGroupSAMLSourceConnectionRequestFromJSONTyped(
    json: any,
    ignoreDiscriminator: boolean,
): PatchedGroupSAMLSourceConnectionRequest {
    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 PatchedGroupSAMLSourceConnectionRequestToJSON(
    json: any,
): PatchedGroupSAMLSourceConnectionRequest {
    return PatchedGroupSAMLSourceConnectionRequestToJSONTyped(json, false);
}

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

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