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

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

export function PatchedGroupLDAPSourceConnectionRequestFromJSON(
    json: any,
): PatchedGroupLDAPSourceConnectionRequest {
    return PatchedGroupLDAPSourceConnectionRequestFromJSONTyped(json, false);
}

export function PatchedGroupLDAPSourceConnectionRequestFromJSONTyped(
    json: any,
    ignoreDiscriminator: boolean,
): PatchedGroupLDAPSourceConnectionRequest {
    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 PatchedGroupLDAPSourceConnectionRequestToJSON(
    json: any,
): PatchedGroupLDAPSourceConnectionRequest {
    return PatchedGroupLDAPSourceConnectionRequestToJSONTyped(json, false);
}

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

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