"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2025.10.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.instanceOfPatchedOutpostRequest = instanceOfPatchedOutpostRequest;
exports.PatchedOutpostRequestFromJSON = PatchedOutpostRequestFromJSON;
exports.PatchedOutpostRequestFromJSONTyped = PatchedOutpostRequestFromJSONTyped;
exports.PatchedOutpostRequestToJSON = PatchedOutpostRequestToJSON;
exports.PatchedOutpostRequestToJSONTyped = PatchedOutpostRequestToJSONTyped;
const OutpostTypeEnum_1 = require("./OutpostTypeEnum");
/**
 * Check if a given object implements the PatchedOutpostRequest interface.
 */
function instanceOfPatchedOutpostRequest(value) {
    return true;
}
function PatchedOutpostRequestFromJSON(json) {
    return PatchedOutpostRequestFromJSONTyped(json, false);
}
function PatchedOutpostRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'name': json['name'] == null ? undefined : json['name'],
        'type': json['type'] == null ? undefined : (0, OutpostTypeEnum_1.OutpostTypeEnumFromJSON)(json['type']),
        'providers': json['providers'] == null ? undefined : json['providers'],
        'serviceConnection': json['service_connection'] == null ? undefined : json['service_connection'],
        'config': json['config'] == null ? undefined : json['config'],
        'managed': json['managed'] == null ? undefined : json['managed'],
    };
}
function PatchedOutpostRequestToJSON(json) {
    return PatchedOutpostRequestToJSONTyped(json, false);
}
function PatchedOutpostRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'name': value['name'],
        'type': (0, OutpostTypeEnum_1.OutpostTypeEnumToJSON)(value['type']),
        'providers': value['providers'],
        'service_connection': value['serviceConnection'],
        'config': value['config'],
        'managed': value['managed'],
    };
}
//# sourceMappingURL=PatchedOutpostRequest.js.map