// tslint:disable /** * 3Di API * 3Di simulation API (latest stable version: v3) Framework release: 3.0.1 3Di core release: 2.3.0.dev0 deployed on: 10:42AM (UTC) on October 04, 2022 * * The version of the OpenAPI document: v3 * Contact: info@nelen-schuurmans.nl * * 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'; import { Simulation, SimulationFromJSON, SimulationToJSON, } from './'; /** * * @export * @interface Template */ export interface Template { /** * * @type {string} * @memberof Template */ readonly url?: string; /** * * @type {string} * @memberof Template */ name: string; /** * * @type {number} * @memberof Template */ readonly id?: number; /** * * @type {Date} * @memberof Template */ readonly created?: Date; /** * * @type {Simulation} * @memberof Template */ simulation?: Simulation; } export function TemplateFromJSON(json: any): Template { return { 'url': !exists(json, 'url') ? undefined : json['url'], 'name': json['name'], 'id': !exists(json, 'id') ? undefined : json['id'], 'created': !exists(json, 'created') ? undefined : new Date(json['created']), 'simulation': !exists(json, 'simulation') ? undefined : SimulationFromJSON(json['simulation']), }; } export function TemplateToJSON(value?: Template): any { if (value === undefined) { return undefined; } return { 'name': value.name, 'simulation': SimulationToJSON(value.simulation), }; }