"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2026.2.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.instanceOfPatchedRedirectStageRequest = instanceOfPatchedRedirectStageRequest;
exports.PatchedRedirectStageRequestFromJSON = PatchedRedirectStageRequestFromJSON;
exports.PatchedRedirectStageRequestFromJSONTyped = PatchedRedirectStageRequestFromJSONTyped;
exports.PatchedRedirectStageRequestToJSON = PatchedRedirectStageRequestToJSON;
exports.PatchedRedirectStageRequestToJSONTyped = PatchedRedirectStageRequestToJSONTyped;
const RedirectStageModeEnum_1 = require("./RedirectStageModeEnum");
/**
 * Check if a given object implements the PatchedRedirectStageRequest interface.
 */
function instanceOfPatchedRedirectStageRequest(value) {
    return true;
}
function PatchedRedirectStageRequestFromJSON(json) {
    return PatchedRedirectStageRequestFromJSONTyped(json, false);
}
function PatchedRedirectStageRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'name': json['name'] == null ? undefined : json['name'],
        'keepContext': json['keep_context'] == null ? undefined : json['keep_context'],
        'mode': json['mode'] == null ? undefined : (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 PatchedRedirectStageRequestToJSON(json) {
    return PatchedRedirectStageRequestToJSONTyped(json, false);
}
function PatchedRedirectStageRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'name': value['name'],
        'keep_context': value['keepContext'],
        'mode': (0, RedirectStageModeEnum_1.RedirectStageModeEnumToJSON)(value['mode']),
        'target_static': value['targetStatic'],
        'target_flow': value['targetFlow'],
    };
}
//# sourceMappingURL=PatchedRedirectStageRequest.js.map