UNPKG

@vectorize-io/vectorize-client

Version:
76 lines (65 loc) 1.92 kB
/* 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. */ import { mapValues } from '../runtime'; /** * * @export * @interface CreatedAIPlatformConnector */ export interface CreatedAIPlatformConnector { /** * * @type {string} * @memberof CreatedAIPlatformConnector */ name: string; /** * * @type {string} * @memberof CreatedAIPlatformConnector */ id: string; } /** * Check if a given object implements the CreatedAIPlatformConnector interface. */ export function instanceOfCreatedAIPlatformConnector(value: object): value is CreatedAIPlatformConnector { if (!('name' in value) || value['name'] === undefined) return false; if (!('id' in value) || value['id'] === undefined) return false; return true; } export function CreatedAIPlatformConnectorFromJSON(json: any): CreatedAIPlatformConnector { return CreatedAIPlatformConnectorFromJSONTyped(json, false); } export function CreatedAIPlatformConnectorFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreatedAIPlatformConnector { if (json == null) { return json; } return { 'name': json['name'], 'id': json['id'], }; } export function CreatedAIPlatformConnectorToJSON(json: any): CreatedAIPlatformConnector { return CreatedAIPlatformConnectorToJSONTyped(json, false); } export function CreatedAIPlatformConnectorToJSONTyped(value?: CreatedAIPlatformConnector | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'name': value['name'], 'id': value['id'], }; }