UNPKG

@vectorize-io/vectorize-client

Version:
57 lines (56 loc) 2.17 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.instanceOfCreateSourceConnectorResponse = instanceOfCreateSourceConnectorResponse; exports.CreateSourceConnectorResponseFromJSON = CreateSourceConnectorResponseFromJSON; exports.CreateSourceConnectorResponseFromJSONTyped = CreateSourceConnectorResponseFromJSONTyped; exports.CreateSourceConnectorResponseToJSON = CreateSourceConnectorResponseToJSON; exports.CreateSourceConnectorResponseToJSONTyped = CreateSourceConnectorResponseToJSONTyped; var CreatedSourceConnector_1 = require("./CreatedSourceConnector"); /** * Check if a given object implements the CreateSourceConnectorResponse interface. */ function instanceOfCreateSourceConnectorResponse(value) { if (!('message' in value) || value['message'] === undefined) return false; if (!('connectors' in value) || value['connectors'] === undefined) return false; return true; } function CreateSourceConnectorResponseFromJSON(json) { return CreateSourceConnectorResponseFromJSONTyped(json, false); } function CreateSourceConnectorResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'message': json['message'], 'connectors': (json['connectors'].map(CreatedSourceConnector_1.CreatedSourceConnectorFromJSON)), }; } function CreateSourceConnectorResponseToJSON(json) { return CreateSourceConnectorResponseToJSONTyped(json, false); } function CreateSourceConnectorResponseToJSONTyped(value, ignoreDiscriminator) { if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; } if (value == null) { return value; } return { 'message': value['message'], 'connectors': (value['connectors'].map(CreatedSourceConnector_1.CreatedSourceConnectorToJSON)), }; }