@vectorize-io/vectorize-client
Version:
Client for the Vectorize API
92 lines (81 loc) • 2.19 kB
text/typescript
/* tslint:disable */
/* eslint-disable */
/**
* Vectorize API
* API for Vectorize services (Beta)
*
* The version of the OpenAPI document: 0.1.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
/**
*
* @export
* @interface WorkspaceSchema
*/
export interface WorkspaceSchema {
/**
*
* @type {string}
* @memberof WorkspaceSchema
*/
id: string;
/**
*
* @type {string}
* @memberof WorkspaceSchema
*/
name: string;
/**
*
* @type {string}
* @memberof WorkspaceSchema
*/
createdAt?: string | null;
/**
*
* @type {string}
* @memberof WorkspaceSchema
*/
updatedAt?: string | null;
}
/**
* Check if a given object implements the WorkspaceSchema interface.
*/
export function instanceOfWorkspaceSchema(value: object): value is WorkspaceSchema {
if (!('id' in value) || value['id'] === undefined) return false;
if (!('name' in value) || value['name'] === undefined) return false;
return true;
}
export function WorkspaceSchemaFromJSON(json: any): WorkspaceSchema {
return WorkspaceSchemaFromJSONTyped(json, false);
}
export function WorkspaceSchemaFromJSONTyped(json: any, ignoreDiscriminator: boolean): WorkspaceSchema {
if (json == null) {
return json;
}
return {
'id': json['id'],
'name': json['name'],
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
'updatedAt': json['updatedAt'] == null ? undefined : json['updatedAt'],
};
}
export function WorkspaceSchemaToJSON(json: any): WorkspaceSchema {
return WorkspaceSchemaToJSONTyped(json, false);
}
export function WorkspaceSchemaToJSONTyped(value?: WorkspaceSchema | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'id': value['id'],
'name': value['name'],
'createdAt': value['createdAt'],
'updatedAt': value['updatedAt'],
};
}