UNPKG

@vectorize-io/vectorize-client

Version:
59 lines (58 loc) 2.1 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.instanceOfCreateAIPlatformConnector = instanceOfCreateAIPlatformConnector; exports.CreateAIPlatformConnectorFromJSON = CreateAIPlatformConnectorFromJSON; exports.CreateAIPlatformConnectorFromJSONTyped = CreateAIPlatformConnectorFromJSONTyped; exports.CreateAIPlatformConnectorToJSON = CreateAIPlatformConnectorToJSON; exports.CreateAIPlatformConnectorToJSONTyped = CreateAIPlatformConnectorToJSONTyped; var AIPlatformType_1 = require("./AIPlatformType"); /** * Check if a given object implements the CreateAIPlatformConnector interface. */ function instanceOfCreateAIPlatformConnector(value) { if (!('name' in value) || value['name'] === undefined) return false; if (!('type' in value) || value['type'] === undefined) return false; return true; } function CreateAIPlatformConnectorFromJSON(json) { return CreateAIPlatformConnectorFromJSONTyped(json, false); } function CreateAIPlatformConnectorFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'name': json['name'], 'type': (0, AIPlatformType_1.AIPlatformTypeFromJSON)(json['type']), 'config': json['config'] == null ? undefined : json['config'], }; } function CreateAIPlatformConnectorToJSON(json) { return CreateAIPlatformConnectorToJSONTyped(json, false); } function CreateAIPlatformConnectorToJSONTyped(value, ignoreDiscriminator) { if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; } if (value == null) { return value; } return { 'name': value['name'], 'type': (0, AIPlatformType_1.AIPlatformTypeToJSON)(value['type']), 'config': value['config'], }; }