"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2026.2.2-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.instanceOfPatchedEndpointStageRequest = instanceOfPatchedEndpointStageRequest;
exports.PatchedEndpointStageRequestFromJSON = PatchedEndpointStageRequestFromJSON;
exports.PatchedEndpointStageRequestFromJSONTyped = PatchedEndpointStageRequestFromJSONTyped;
exports.PatchedEndpointStageRequestToJSON = PatchedEndpointStageRequestToJSON;
exports.PatchedEndpointStageRequestToJSONTyped = PatchedEndpointStageRequestToJSONTyped;
const StageModeEnum_1 = require("./StageModeEnum");
/**
 * Check if a given object implements the PatchedEndpointStageRequest interface.
 */
function instanceOfPatchedEndpointStageRequest(value) {
    return true;
}
function PatchedEndpointStageRequestFromJSON(json) {
    return PatchedEndpointStageRequestFromJSONTyped(json, false);
}
function PatchedEndpointStageRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'name': json['name'] == null ? undefined : json['name'],
        'connector': json['connector'] == null ? undefined : json['connector'],
        'mode': json['mode'] == null ? undefined : (0, StageModeEnum_1.StageModeEnumFromJSON)(json['mode']),
    };
}
function PatchedEndpointStageRequestToJSON(json) {
    return PatchedEndpointStageRequestToJSONTyped(json, false);
}
function PatchedEndpointStageRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'name': value['name'],
        'connector': value['connector'],
        'mode': (0, StageModeEnum_1.StageModeEnumToJSON)(value['mode']),
    };
}
//# sourceMappingURL=PatchedEndpointStageRequest.js.map