// 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 ConstantLeakage */ export interface ConstantLeakage { /** * * @type {string} * @memberof ConstantLeakage */ readonly url?: string; /** * * @type {string} * @memberof ConstantLeakage */ readonly simulation?: string; /** * offset of event in simulation in seconds * @type {number} * @memberof ConstantLeakage */ offset: number; /** * * @type {number} * @memberof ConstantLeakage */ duration: number; /** * * @type {number} * @memberof ConstantLeakage */ value: number; /** * \'m/s\' (only option for now) * @type {string} * @memberof ConstantLeakage */ units: ConstantLeakageUnitsEnum; /** * * @type {string} * @memberof ConstantLeakage */ readonly uid?: string; /** * * @type {number} * @memberof ConstantLeakage */ readonly id?: number; } export function ConstantLeakageFromJSON(json: any): ConstantLeakage { return { 'url': !exists(json, 'url') ? undefined : json['url'], 'simulation': !exists(json, 'simulation') ? undefined : json['simulation'], 'offset': json['offset'], 'duration': json['duration'], 'value': json['value'], 'units': json['units'], 'uid': !exists(json, 'uid') ? undefined : json['uid'], 'id': !exists(json, 'id') ? undefined : json['id'], }; } export function ConstantLeakageToJSON(value?: ConstantLeakage): any { if (value === undefined) { return undefined; } return { 'offset': value.offset, 'duration': value.duration, 'value': value.value, 'units': value.units, }; } /** * @export * @enum {string} */ export enum ConstantLeakageUnitsEnum { MS = 'm/s' }