"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.instanceOfFleetConnectorRequest = instanceOfFleetConnectorRequest;
exports.FleetConnectorRequestFromJSON = FleetConnectorRequestFromJSON;
exports.FleetConnectorRequestFromJSONTyped = FleetConnectorRequestFromJSONTyped;
exports.FleetConnectorRequestToJSON = FleetConnectorRequestToJSON;
exports.FleetConnectorRequestToJSONTyped = FleetConnectorRequestToJSONTyped;
/**
 * Check if a given object implements the FleetConnectorRequest interface.
 */
function instanceOfFleetConnectorRequest(value) {
    if (!('name' in value) || value['name'] === undefined)
        return false;
    if (!('url' in value) || value['url'] === undefined)
        return false;
    if (!('token' in value) || value['token'] === undefined)
        return false;
    return true;
}
function FleetConnectorRequestFromJSON(json) {
    return FleetConnectorRequestFromJSONTyped(json, false);
}
function FleetConnectorRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'connectorUuid': json['connector_uuid'] == null ? undefined : json['connector_uuid'],
        'name': json['name'],
        'enabled': json['enabled'] == null ? undefined : json['enabled'],
        'url': json['url'],
        'token': json['token'],
        'headersMapping': json['headers_mapping'] == null ? undefined : json['headers_mapping'],
        'mapUsers': json['map_users'] == null ? undefined : json['map_users'],
        'mapTeamsAccessGroup': json['map_teams_access_group'] == null ? undefined : json['map_teams_access_group'],
    };
}
function FleetConnectorRequestToJSON(json) {
    return FleetConnectorRequestToJSONTyped(json, false);
}
function FleetConnectorRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'connector_uuid': value['connectorUuid'],
        'name': value['name'],
        'enabled': value['enabled'],
        'url': value['url'],
        'token': value['token'],
        'headers_mapping': value['headersMapping'],
        'map_users': value['mapUsers'],
        'map_teams_access_group': value['mapTeamsAccessGroup'],
    };
}
//# sourceMappingURL=FleetConnectorRequest.js.map