// 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 { FileReadOnly, FileReadOnlyFromJSON, FileReadOnlyToJSON, } from './'; /** * * @export * @interface ResultFile */ export interface ResultFile { /** * * @type {string} * @memberof ResultFile */ readonly url?: string; /** * * @type {string} * @memberof ResultFile */ readonly simulation?: string; /** * * @type {string} * @memberof ResultFile */ filename: string; /** * * @type {string} * @memberof ResultFile */ description?: string | null; /** * * @type {Date} * @memberof ResultFile */ created: Date; /** * * @type {FileReadOnly} * @memberof ResultFile */ file?: FileReadOnly; /** * * @type {number} * @memberof ResultFile */ readonly id?: number; } export function ResultFileFromJSON(json: any): ResultFile { return { 'url': !exists(json, 'url') ? undefined : json['url'], 'simulation': !exists(json, 'simulation') ? undefined : json['simulation'], 'filename': json['filename'], 'description': !exists(json, 'description') ? undefined : json['description'], 'created': new Date(json['created']), 'file': !exists(json, 'file') ? undefined : FileReadOnlyFromJSON(json['file']), 'id': !exists(json, 'id') ? undefined : json['id'], }; } export function ResultFileToJSON(value?: ResultFile): any { if (value === undefined) { return undefined; } return { 'filename': value.filename, 'description': value.description, 'created': value.created.toISOString(), 'file': FileReadOnlyToJSON(value.file), }; }