/* 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 AIDatasetSimple */ export interface AIDatasetSimple { /** * * @type {string} * @memberof AIDatasetSimple */ id?: string; /** * * @type {string} * @memberof AIDatasetSimple */ name: string; /** * * @type {string} * @memberof AIDatasetSimple */ type?: AIDatasetSimpleTypeEnum; /** * * @type {number} * @memberof AIDatasetSimple */ connection: number; } /** * @export * @enum {string} */ export enum AIDatasetSimpleTypeEnum { Normal = 'normal', FaceLibrary = 'face-library' } export function AIDatasetSimpleFromJSON(json: any): AIDatasetSimple { return AIDatasetSimpleFromJSONTyped(json, false); } export function AIDatasetSimpleFromJSONTyped(json: any, ignoreDiscriminator: boolean): AIDatasetSimple { if ((json === undefined) || (json === null)) { return json; } return { 'id': !exists(json, 'id') ? undefined : json['id'], 'name': json['name'], 'type': !exists(json, 'type') ? undefined : json['type'], 'connection': json['connection'], }; } export function AIDatasetSimpleToJSON(value?: AIDatasetSimple | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'id': value.id, 'name': value.name, 'type': value.type, 'connection': value.connection, }; }