"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.instanceOfEndpointStageRequest = instanceOfEndpointStageRequest;
exports.EndpointStageRequestFromJSON = EndpointStageRequestFromJSON;
exports.EndpointStageRequestFromJSONTyped = EndpointStageRequestFromJSONTyped;
exports.EndpointStageRequestToJSON = EndpointStageRequestToJSON;
exports.EndpointStageRequestToJSONTyped = EndpointStageRequestToJSONTyped;
const StageModeEnum_1 = require("./StageModeEnum");
/**
 * Check if a given object implements the EndpointStageRequest interface.
 */
function instanceOfEndpointStageRequest(value) {
    if (!('name' in value) || value['name'] === undefined)
        return false;
    if (!('connector' in value) || value['connector'] === undefined)
        return false;
    return true;
}
function EndpointStageRequestFromJSON(json) {
    return EndpointStageRequestFromJSONTyped(json, false);
}
function EndpointStageRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'name': json['name'],
        'connector': json['connector'],
        'mode': json['mode'] == null ? undefined : (0, StageModeEnum_1.StageModeEnumFromJSON)(json['mode']),
    };
}
function EndpointStageRequestToJSON(json) {
    return EndpointStageRequestToJSONTyped(json, false);
}
function EndpointStageRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'name': value['name'],
        'connector': value['connector'],
        'mode': (0, StageModeEnum_1.StageModeEnumToJSON)(value['mode']),
    };
}
//# sourceMappingURL=EndpointStageRequest.js.map