"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.instanceOfPatchedFlowRequest = instanceOfPatchedFlowRequest;
exports.PatchedFlowRequestFromJSON = PatchedFlowRequestFromJSON;
exports.PatchedFlowRequestFromJSONTyped = PatchedFlowRequestFromJSONTyped;
exports.PatchedFlowRequestToJSON = PatchedFlowRequestToJSON;
exports.PatchedFlowRequestToJSONTyped = PatchedFlowRequestToJSONTyped;
const DeniedActionEnum_1 = require("./DeniedActionEnum");
const FlowLayoutEnum_1 = require("./FlowLayoutEnum");
const PolicyEngineMode_1 = require("./PolicyEngineMode");
const FlowDesignationEnum_1 = require("./FlowDesignationEnum");
const AuthenticationEnum_1 = require("./AuthenticationEnum");
/**
 * Check if a given object implements the PatchedFlowRequest interface.
 */
function instanceOfPatchedFlowRequest(value) {
    return true;
}
function PatchedFlowRequestFromJSON(json) {
    return PatchedFlowRequestFromJSONTyped(json, false);
}
function PatchedFlowRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'name': json['name'] == null ? undefined : json['name'],
        'slug': json['slug'] == null ? undefined : json['slug'],
        'title': json['title'] == null ? undefined : json['title'],
        'designation': json['designation'] == null ? undefined : (0, FlowDesignationEnum_1.FlowDesignationEnumFromJSON)(json['designation']),
        'background': json['background'] == null ? undefined : json['background'],
        'policyEngineMode': json['policy_engine_mode'] == null ? undefined : (0, PolicyEngineMode_1.PolicyEngineModeFromJSON)(json['policy_engine_mode']),
        'compatibilityMode': json['compatibility_mode'] == null ? undefined : json['compatibility_mode'],
        'layout': json['layout'] == null ? undefined : (0, FlowLayoutEnum_1.FlowLayoutEnumFromJSON)(json['layout']),
        'deniedAction': json['denied_action'] == null ? undefined : (0, DeniedActionEnum_1.DeniedActionEnumFromJSON)(json['denied_action']),
        'authentication': json['authentication'] == null ? undefined : (0, AuthenticationEnum_1.AuthenticationEnumFromJSON)(json['authentication']),
    };
}
function PatchedFlowRequestToJSON(json) {
    return PatchedFlowRequestToJSONTyped(json, false);
}
function PatchedFlowRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'name': value['name'],
        'slug': value['slug'],
        'title': value['title'],
        'designation': (0, FlowDesignationEnum_1.FlowDesignationEnumToJSON)(value['designation']),
        'background': value['background'],
        'policy_engine_mode': (0, PolicyEngineMode_1.PolicyEngineModeToJSON)(value['policyEngineMode']),
        'compatibility_mode': value['compatibilityMode'],
        'layout': (0, FlowLayoutEnum_1.FlowLayoutEnumToJSON)(value['layout']),
        'denied_action': (0, DeniedActionEnum_1.DeniedActionEnumToJSON)(value['deniedAction']),
        'authentication': (0, AuthenticationEnum_1.AuthenticationEnumToJSON)(value['authentication']),
    };
}
//# sourceMappingURL=PatchedFlowRequest.js.map