"use strict";
/* 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.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfRedirectChallengeResponseRequest = instanceOfRedirectChallengeResponseRequest;
exports.RedirectChallengeResponseRequestFromJSON = RedirectChallengeResponseRequestFromJSON;
exports.RedirectChallengeResponseRequestFromJSONTyped = RedirectChallengeResponseRequestFromJSONTyped;
exports.RedirectChallengeResponseRequestToJSON = RedirectChallengeResponseRequestToJSON;
exports.RedirectChallengeResponseRequestToJSONTyped = RedirectChallengeResponseRequestToJSONTyped;
/**
 * Check if a given object implements the RedirectChallengeResponseRequest interface.
 */
function instanceOfRedirectChallengeResponseRequest(value) {
    if (!('to' in value) || value['to'] === undefined)
        return false;
    return true;
}
function RedirectChallengeResponseRequestFromJSON(json) {
    return RedirectChallengeResponseRequestFromJSONTyped(json, false);
}
function RedirectChallengeResponseRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'component': json['component'] == null ? undefined : json['component'],
        'to': json['to'],
    };
}
function RedirectChallengeResponseRequestToJSON(json) {
    return RedirectChallengeResponseRequestToJSONTyped(json, false);
}
function RedirectChallengeResponseRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'component': value['component'],
        'to': value['to'],
    };
}
//# sourceMappingURL=RedirectChallengeResponseRequest.js.map