"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.instanceOfRedirectStageRequest = instanceOfRedirectStageRequest;
exports.RedirectStageRequestFromJSON = RedirectStageRequestFromJSON;
exports.RedirectStageRequestFromJSONTyped = RedirectStageRequestFromJSONTyped;
exports.RedirectStageRequestToJSON = RedirectStageRequestToJSON;
exports.RedirectStageRequestToJSONTyped = RedirectStageRequestToJSONTyped;
const FlowSetRequest_1 = require("./FlowSetRequest");
const RedirectStageModeEnum_1 = require("./RedirectStageModeEnum");
/**
 * Check if a given object implements the RedirectStageRequest interface.
 */
function instanceOfRedirectStageRequest(value) {
    if (!('name' in value) || value['name'] === undefined)
        return false;
    if (!('mode' in value) || value['mode'] === undefined)
        return false;
    return true;
}
function RedirectStageRequestFromJSON(json) {
    return RedirectStageRequestFromJSONTyped(json, false);
}
function RedirectStageRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'name': json['name'],
        'flowSet': json['flow_set'] == null ? undefined : (json['flow_set'].map(FlowSetRequest_1.FlowSetRequestFromJSON)),
        'keepContext': json['keep_context'] == null ? undefined : json['keep_context'],
        'mode': (0, RedirectStageModeEnum_1.RedirectStageModeEnumFromJSON)(json['mode']),
        'targetStatic': json['target_static'] == null ? undefined : json['target_static'],
        'targetFlow': json['target_flow'] == null ? undefined : json['target_flow'],
    };
}
function RedirectStageRequestToJSON(json) {
    return RedirectStageRequestToJSONTyped(json, false);
}
function RedirectStageRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'name': value['name'],
        'flow_set': value['flowSet'] == null ? undefined : (value['flowSet'].map(FlowSetRequest_1.FlowSetRequestToJSON)),
        'keep_context': value['keepContext'],
        'mode': (0, RedirectStageModeEnum_1.RedirectStageModeEnumToJSON)(value['mode']),
        'target_static': value['targetStatic'],
        'target_flow': value['targetFlow'],
    };
}
//# sourceMappingURL=RedirectStageRequest.js.map