"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2025.12.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.instanceOfConnector = instanceOfConnector;
exports.ConnectorFromJSON = ConnectorFromJSON;
exports.ConnectorFromJSONTyped = ConnectorFromJSONTyped;
exports.ConnectorToJSON = ConnectorToJSON;
exports.ConnectorToJSONTyped = ConnectorToJSONTyped;
/**
 * Check if a given object implements the Connector interface.
 */
function instanceOfConnector(value) {
    if (!('name' in value) || value['name'] === undefined)
        return false;
    if (!('component' in value) || value['component'] === undefined)
        return false;
    if (!('verboseName' in value) || value['verboseName'] === undefined)
        return false;
    if (!('verboseNamePlural' in value) || value['verboseNamePlural'] === undefined)
        return false;
    if (!('metaModelName' in value) || value['metaModelName'] === undefined)
        return false;
    return true;
}
function ConnectorFromJSON(json) {
    return ConnectorFromJSONTyped(json, false);
}
function ConnectorFromJSONTyped(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'],
        'component': json['component'],
        'verboseName': json['verbose_name'],
        'verboseNamePlural': json['verbose_name_plural'],
        'metaModelName': json['meta_model_name'],
    };
}
function ConnectorToJSON(json) {
    return ConnectorToJSONTyped(json, false);
}
function ConnectorToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'connector_uuid': value['connectorUuid'],
        'name': value['name'],
        'enabled': value['enabled'],
    };
}
//# sourceMappingURL=Connector.js.map