UNPKG

@vectorize-io/vectorize-client

Version:
59 lines (58 loc) 2.18 kB
"use strict"; /* tslint:disable */ /* eslint-disable */ /** * Vectorize API (Beta) * API for Vectorize services * * The version of the OpenAPI document: 0.0.1 * * * 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.instanceOfCreateDestinationConnector = instanceOfCreateDestinationConnector; exports.CreateDestinationConnectorFromJSON = CreateDestinationConnectorFromJSON; exports.CreateDestinationConnectorFromJSONTyped = CreateDestinationConnectorFromJSONTyped; exports.CreateDestinationConnectorToJSON = CreateDestinationConnectorToJSON; exports.CreateDestinationConnectorToJSONTyped = CreateDestinationConnectorToJSONTyped; var DestinationConnectorType_1 = require("./DestinationConnectorType"); /** * Check if a given object implements the CreateDestinationConnector interface. */ function instanceOfCreateDestinationConnector(value) { if (!('name' in value) || value['name'] === undefined) return false; if (!('type' in value) || value['type'] === undefined) return false; return true; } function CreateDestinationConnectorFromJSON(json) { return CreateDestinationConnectorFromJSONTyped(json, false); } function CreateDestinationConnectorFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'name': json['name'], 'type': (0, DestinationConnectorType_1.DestinationConnectorTypeFromJSON)(json['type']), 'config': json['config'] == null ? undefined : json['config'], }; } function CreateDestinationConnectorToJSON(json) { return CreateDestinationConnectorToJSONTyped(json, false); } function CreateDestinationConnectorToJSONTyped(value, ignoreDiscriminator) { if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; } if (value == null) { return value; } return { 'name': value['name'], 'type': (0, DestinationConnectorType_1.DestinationConnectorTypeToJSON)(value['type']), 'config': value['config'], }; }