@vectorize-io/vectorize-client
Version:
Client for the Vectorize API
62 lines (61 loc) • 2.17 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.instanceOfAIPlatformSchema = instanceOfAIPlatformSchema;
exports.AIPlatformSchemaFromJSON = AIPlatformSchemaFromJSON;
exports.AIPlatformSchemaFromJSONTyped = AIPlatformSchemaFromJSONTyped;
exports.AIPlatformSchemaToJSON = AIPlatformSchemaToJSON;
exports.AIPlatformSchemaToJSONTyped = AIPlatformSchemaToJSONTyped;
var AIPlatformType_1 = require("./AIPlatformType");
var AIPlatformConfigSchema_1 = require("./AIPlatformConfigSchema");
/**
* Check if a given object implements the AIPlatformSchema interface.
*/
function instanceOfAIPlatformSchema(value) {
if (!('id' in value) || value['id'] === undefined)
return false;
if (!('type' in value) || value['type'] === undefined)
return false;
if (!('config' in value) || value['config'] === undefined)
return false;
return true;
}
function AIPlatformSchemaFromJSON(json) {
return AIPlatformSchemaFromJSONTyped(json, false);
}
function AIPlatformSchemaFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'id': json['id'],
'type': (0, AIPlatformType_1.AIPlatformTypeFromJSON)(json['type']),
'config': (0, AIPlatformConfigSchema_1.AIPlatformConfigSchemaFromJSON)(json['config']),
};
}
function AIPlatformSchemaToJSON(json) {
return AIPlatformSchemaToJSONTyped(json, false);
}
function AIPlatformSchemaToJSONTyped(value, ignoreDiscriminator) {
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
if (value == null) {
return value;
}
return {
'id': value['id'],
'type': (0, AIPlatformType_1.AIPlatformTypeToJSON)(value['type']),
'config': (0, AIPlatformConfigSchema_1.AIPlatformConfigSchemaToJSON)(value['config']),
};
}
;