@vectorize-io/vectorize-client
Version:
Client for the Vectorize API
56 lines (55 loc) • 1.79 kB
JavaScript
/* 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.instanceOfCreatedSourceConnector = instanceOfCreatedSourceConnector;
exports.CreatedSourceConnectorFromJSON = CreatedSourceConnectorFromJSON;
exports.CreatedSourceConnectorFromJSONTyped = CreatedSourceConnectorFromJSONTyped;
exports.CreatedSourceConnectorToJSON = CreatedSourceConnectorToJSON;
exports.CreatedSourceConnectorToJSONTyped = CreatedSourceConnectorToJSONTyped;
/**
* Check if a given object implements the CreatedSourceConnector interface.
*/
function instanceOfCreatedSourceConnector(value) {
if (!('name' in value) || value['name'] === undefined)
return false;
if (!('id' in value) || value['id'] === undefined)
return false;
return true;
}
function CreatedSourceConnectorFromJSON(json) {
return CreatedSourceConnectorFromJSONTyped(json, false);
}
function CreatedSourceConnectorFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'name': json['name'],
'id': json['id'],
};
}
function CreatedSourceConnectorToJSON(json) {
return CreatedSourceConnectorToJSONTyped(json, false);
}
function CreatedSourceConnectorToJSONTyped(value, ignoreDiscriminator) {
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
if (value == null) {
return value;
}
return {
'name': value['name'],
'id': value['id'],
};
}
;