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

/**
 * AuthenticatorEndpointGDTCStage Serializer
 * @export
 * @interface PatchedAuthenticatorEndpointGDTCStageRequest
 */
export interface PatchedAuthenticatorEndpointGDTCStageRequest {
    /**
     *
     * @type {string}
     * @memberof PatchedAuthenticatorEndpointGDTCStageRequest
     */
    name?: string;
    /**
     * Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage.
     * @type {string}
     * @memberof PatchedAuthenticatorEndpointGDTCStageRequest
     */
    configureFlow?: string | null;
    /**
     *
     * @type {string}
     * @memberof PatchedAuthenticatorEndpointGDTCStageRequest
     */
    friendlyName?: string;
    /**
     *
     * @type {{ [key: string]: any; }}
     * @memberof PatchedAuthenticatorEndpointGDTCStageRequest
     */
    credentials?: { [key: string]: any };
}

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

export function PatchedAuthenticatorEndpointGDTCStageRequestFromJSON(
    json: any,
): PatchedAuthenticatorEndpointGDTCStageRequest {
    return PatchedAuthenticatorEndpointGDTCStageRequestFromJSONTyped(json, false);
}

export function PatchedAuthenticatorEndpointGDTCStageRequestFromJSONTyped(
    json: any,
    ignoreDiscriminator: boolean,
): PatchedAuthenticatorEndpointGDTCStageRequest {
    if (json == null) {
        return json;
    }
    return {
        name: json["name"] == null ? undefined : json["name"],
        configureFlow: json["configure_flow"] == null ? undefined : json["configure_flow"],
        friendlyName: json["friendly_name"] == null ? undefined : json["friendly_name"],
        credentials: json["credentials"] == null ? undefined : json["credentials"],
    };
}

export function PatchedAuthenticatorEndpointGDTCStageRequestToJSON(
    json: any,
): PatchedAuthenticatorEndpointGDTCStageRequest {
    return PatchedAuthenticatorEndpointGDTCStageRequestToJSONTyped(json, false);
}

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

    return {
        name: value["name"],
        configure_flow: value["configureFlow"],
        friendly_name: value["friendlyName"],
        credentials: value["credentials"],
    };
}
