@vectorize-io/vectorize-client
Version:
Client for the Vectorize API
92 lines (81 loc) • 2.36 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 GetWorkspaceByIdResponse
*/
export interface GetWorkspaceByIdResponse {
/**
*
* @type {string}
* @memberof GetWorkspaceByIdResponse
*/
id: string;
/**
*
* @type {string}
* @memberof GetWorkspaceByIdResponse
*/
name: string;
/**
*
* @type {string}
* @memberof GetWorkspaceByIdResponse
*/
createdAt?: string | null;
/**
*
* @type {string}
* @memberof GetWorkspaceByIdResponse
*/
updatedAt?: string | null;
}
/**
* Check if a given object implements the GetWorkspaceByIdResponse interface.
*/
export function instanceOfGetWorkspaceByIdResponse(value: object): value is GetWorkspaceByIdResponse {
if (!('id' in value) || value['id'] === undefined) return false;
if (!('name' in value) || value['name'] === undefined) return false;
return true;
}
export function GetWorkspaceByIdResponseFromJSON(json: any): GetWorkspaceByIdResponse {
return GetWorkspaceByIdResponseFromJSONTyped(json, false);
}
export function GetWorkspaceByIdResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetWorkspaceByIdResponse {
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 GetWorkspaceByIdResponseToJSON(json: any): GetWorkspaceByIdResponse {
return GetWorkspaceByIdResponseToJSONTyped(json, false);
}
export function GetWorkspaceByIdResponseToJSONTyped(value?: GetWorkspaceByIdResponse | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'id': value['id'],
'name': value['name'],
'createdAt': value['createdAt'],
'updatedAt': value['updatedAt'],
};
}