// 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'; /** * * @export * @interface FileStructureControl */ export interface FileStructureControl { /** * * @type {string} * @memberof FileStructureControl */ readonly url?: string; /** * * @type {number} * @memberof FileStructureControl */ readonly id?: number; /** * * @type {string} * @memberof FileStructureControl */ readonly uid?: string; /** * * @type {string} * @memberof FileStructureControl */ readonly simulation?: string; /** * offset of event in simulation in seconds * @type {number} * @memberof FileStructureControl */ offset: number; /** * * @type {any} * @memberof FileStructureControl */ file?: any; /** * * @type {string} * @memberof FileStructureControl */ readonly state?: FileStructureControlStateEnum; /** * * @type {object} * @memberof FileStructureControl */ readonly stateDetail?: object; } export function FileStructureControlFromJSON(json: any): FileStructureControl { return { 'url': !exists(json, 'url') ? undefined : json['url'], 'id': !exists(json, 'id') ? undefined : json['id'], 'uid': !exists(json, 'uid') ? undefined : json['uid'], 'simulation': !exists(json, 'simulation') ? undefined : json['simulation'], 'offset': json['offset'], 'file': !exists(json, 'file') ? undefined : json['file'], 'state': !exists(json, 'state') ? undefined : json['state'], 'stateDetail': !exists(json, 'state_detail') ? undefined : json['state_detail'], }; } export function FileStructureControlToJSON(value?: FileStructureControl): any { if (value === undefined) { return undefined; } return { 'offset': value.offset, 'file': value.file, }; } /** * @export * @enum {string} */ export enum FileStructureControlStateEnum { Processing = 'processing', Valid = 'valid', Invalid = 'invalid' }