"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2025.12.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.instanceOfPatchedFlowStageBindingRequest = instanceOfPatchedFlowStageBindingRequest;
exports.PatchedFlowStageBindingRequestFromJSON = PatchedFlowStageBindingRequestFromJSON;
exports.PatchedFlowStageBindingRequestFromJSONTyped = PatchedFlowStageBindingRequestFromJSONTyped;
exports.PatchedFlowStageBindingRequestToJSON = PatchedFlowStageBindingRequestToJSON;
exports.PatchedFlowStageBindingRequestToJSONTyped = PatchedFlowStageBindingRequestToJSONTyped;
const InvalidResponseActionEnum_1 = require("./InvalidResponseActionEnum");
const PolicyEngineMode_1 = require("./PolicyEngineMode");
/**
 * Check if a given object implements the PatchedFlowStageBindingRequest interface.
 */
function instanceOfPatchedFlowStageBindingRequest(value) {
    return true;
}
function PatchedFlowStageBindingRequestFromJSON(json) {
    return PatchedFlowStageBindingRequestFromJSONTyped(json, false);
}
function PatchedFlowStageBindingRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'target': json['target'] == null ? undefined : json['target'],
        'stage': json['stage'] == null ? undefined : json['stage'],
        'evaluateOnPlan': json['evaluate_on_plan'] == null ? undefined : json['evaluate_on_plan'],
        'reEvaluatePolicies': json['re_evaluate_policies'] == null ? undefined : json['re_evaluate_policies'],
        'order': json['order'] == null ? undefined : json['order'],
        'policyEngineMode': json['policy_engine_mode'] == null ? undefined : (0, PolicyEngineMode_1.PolicyEngineModeFromJSON)(json['policy_engine_mode']),
        'invalidResponseAction': json['invalid_response_action'] == null ? undefined : (0, InvalidResponseActionEnum_1.InvalidResponseActionEnumFromJSON)(json['invalid_response_action']),
    };
}
function PatchedFlowStageBindingRequestToJSON(json) {
    return PatchedFlowStageBindingRequestToJSONTyped(json, false);
}
function PatchedFlowStageBindingRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'target': value['target'],
        'stage': value['stage'],
        'evaluate_on_plan': value['evaluateOnPlan'],
        're_evaluate_policies': value['reEvaluatePolicies'],
        'order': value['order'],
        'policy_engine_mode': (0, PolicyEngineMode_1.PolicyEngineModeToJSON)(value['policyEngineMode']),
        'invalid_response_action': (0, InvalidResponseActionEnum_1.InvalidResponseActionEnumToJSON)(value['invalidResponseAction']),
    };
}
//# sourceMappingURL=PatchedFlowStageBindingRequest.js.map