/* tslint:disable */ /* eslint-disable */ /** * ELEMENTS API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 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 { exists, mapValues } from '../runtime'; /** * * @export * @interface AIDatasetSimpleReference */ export interface AIDatasetSimpleReference { /** * * @type {string} * @memberof AIDatasetSimpleReference */ id: string; /** * * @type {string} * @memberof AIDatasetSimpleReference */ readonly name?: string; /** * * @type {string} * @memberof AIDatasetSimpleReference */ readonly type?: AIDatasetSimpleReferenceTypeEnum; /** * * @type {number} * @memberof AIDatasetSimpleReference */ readonly connection?: number; } /** * @export * @enum {string} */ export enum AIDatasetSimpleReferenceTypeEnum { Normal = 'normal', FaceLibrary = 'face-library' } export function AIDatasetSimpleReferenceFromJSON(json: any): AIDatasetSimpleReference { return AIDatasetSimpleReferenceFromJSONTyped(json, false); } export function AIDatasetSimpleReferenceFromJSONTyped(json: any, ignoreDiscriminator: boolean): AIDatasetSimpleReference { if ((json === undefined) || (json === null)) { return json; } return { 'id': json['id'], 'name': !exists(json, 'name') ? undefined : json['name'], 'type': !exists(json, 'type') ? undefined : json['type'], 'connection': !exists(json, 'connection') ? undefined : json['connection'], }; } export function AIDatasetSimpleReferenceToJSON(value?: AIDatasetSimpleReference | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'id': value.id, }; }