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

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

export function PatchedGroupTelegramSourceConnectionRequestFromJSON(
    json: any,
): PatchedGroupTelegramSourceConnectionRequest {
    return PatchedGroupTelegramSourceConnectionRequestFromJSONTyped(json, false);
}

export function PatchedGroupTelegramSourceConnectionRequestFromJSONTyped(
    json: any,
    ignoreDiscriminator: boolean,
): PatchedGroupTelegramSourceConnectionRequest {
    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 PatchedGroupTelegramSourceConnectionRequestToJSON(
    json: any,
): PatchedGroupTelegramSourceConnectionRequest {
    return PatchedGroupTelegramSourceConnectionRequestToJSONTyped(json, false);
}

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

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