@vectorize-io/vectorize-client
Version:
Client for the Vectorize API
76 lines (75 loc) • 2.85 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.instanceOfAIPlatform = instanceOfAIPlatform;
exports.AIPlatformFromJSON = AIPlatformFromJSON;
exports.AIPlatformFromJSONTyped = AIPlatformFromJSONTyped;
exports.AIPlatformToJSON = AIPlatformToJSON;
exports.AIPlatformToJSONTyped = AIPlatformToJSONTyped;
/**
* Check if a given object implements the AIPlatform interface.
*/
function instanceOfAIPlatform(value) {
if (!('id' in value) || value['id'] === undefined)
return false;
if (!('type' in value) || value['type'] === undefined)
return false;
if (!('name' in value) || value['name'] === undefined)
return false;
return true;
}
function AIPlatformFromJSON(json) {
return AIPlatformFromJSONTyped(json, false);
}
function AIPlatformFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'id': json['id'],
'type': json['type'],
'name': json['name'],
'configDoc': json['configDoc'] == null ? undefined : json['configDoc'],
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
'createdById': json['createdById'] == null ? undefined : json['createdById'],
'lastUpdatedById': json['lastUpdatedById'] == null ? undefined : json['lastUpdatedById'],
'createdByEmail': json['createdByEmail'] == null ? undefined : json['createdByEmail'],
'lastUpdatedByEmail': json['lastUpdatedByEmail'] == null ? undefined : json['lastUpdatedByEmail'],
'errorMessage': json['errorMessage'] == null ? undefined : json['errorMessage'],
'verificationStatus': json['verificationStatus'] == null ? undefined : json['verificationStatus'],
};
}
function AIPlatformToJSON(json) {
return AIPlatformToJSONTyped(json, false);
}
function AIPlatformToJSONTyped(value, ignoreDiscriminator) {
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
if (value == null) {
return value;
}
return {
'id': value['id'],
'type': value['type'],
'name': value['name'],
'configDoc': value['configDoc'],
'createdAt': value['createdAt'],
'createdById': value['createdById'],
'lastUpdatedById': value['lastUpdatedById'],
'createdByEmail': value['createdByEmail'],
'lastUpdatedByEmail': value['lastUpdatedByEmail'],
'errorMessage': value['errorMessage'],
'verificationStatus': value['verificationStatus'],
};
}
;