/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2025.10.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.
 */

import { mapValues } from '../runtime';
/**
 * Redirect challenge response
 * @export
 * @interface RedirectChallengeResponseRequest
 */
export interface RedirectChallengeResponseRequest {
    /**
     * 
     * @type {string}
     * @memberof RedirectChallengeResponseRequest
     */
    component?: string;
    /**
     * 
     * @type {string}
     * @memberof RedirectChallengeResponseRequest
     */
    to: string;
}

/**
 * Check if a given object implements the RedirectChallengeResponseRequest interface.
 */
export function instanceOfRedirectChallengeResponseRequest(value: object): value is RedirectChallengeResponseRequest {
    if (!('to' in value) || value['to'] === undefined) return false;
    return true;
}

export function RedirectChallengeResponseRequestFromJSON(json: any): RedirectChallengeResponseRequest {
    return RedirectChallengeResponseRequestFromJSONTyped(json, false);
}

export function RedirectChallengeResponseRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RedirectChallengeResponseRequest {
    if (json == null) {
        return json;
    }
    return {
        
        'component': json['component'] == null ? undefined : json['component'],
        'to': json['to'],
    };
}

export function RedirectChallengeResponseRequestToJSON(json: any): RedirectChallengeResponseRequest {
    return RedirectChallengeResponseRequestToJSONTyped(json, false);
}

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

    return {
        
        'component': value['component'],
        'to': value['to'],
    };
}

