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

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

export function PatchedGroupKerberosSourceConnectionRequestFromJSON(
    json: any,
): PatchedGroupKerberosSourceConnectionRequest {
    return PatchedGroupKerberosSourceConnectionRequestFromJSONTyped(json, false);
}

export function PatchedGroupKerberosSourceConnectionRequestFromJSONTyped(
    json: any,
    ignoreDiscriminator: boolean,
): PatchedGroupKerberosSourceConnectionRequest {
    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 PatchedGroupKerberosSourceConnectionRequestToJSON(
    json: any,
): PatchedGroupKerberosSourceConnectionRequest {
    return PatchedGroupKerberosSourceConnectionRequestToJSONTyped(json, false);
}

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

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