// 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 { Point, PointFromJSON, PointToJSON, } from './'; /** * * @export * @interface ConstantLocalRain */ export interface ConstantLocalRain { /** * * @type {string} * @memberof ConstantLocalRain */ readonly url?: string; /** * * @type {string} * @memberof ConstantLocalRain */ readonly simulation?: string; /** * offset of event in simulation in seconds * @type {number} * @memberof ConstantLocalRain */ offset: number; /** * * @type {number} * @memberof ConstantLocalRain */ value: number; /** * m/s is only option for now * @type {string} * @memberof ConstantLocalRain */ units?: ConstantLocalRainUnitsEnum; /** * event duration in seconds. -9999 is the \'infinite duration\' value (only allowed in conjunction with infinite simulations * @type {number} * @memberof ConstantLocalRain */ duration?: number | null; /** * * @type {boolean} * @memberof ConstantLocalRain */ interpolate?: boolean; /** * * @type {number} * @memberof ConstantLocalRain */ diameter: number; /** * * @type {Point} * @memberof ConstantLocalRain */ point: Point; /** * * @type {string} * @memberof ConstantLocalRain */ readonly uid?: string; /** * * @type {number} * @memberof ConstantLocalRain */ readonly id?: number; } export function ConstantLocalRainFromJSON(json: any): ConstantLocalRain { return { 'url': !exists(json, 'url') ? undefined : json['url'], 'simulation': !exists(json, 'simulation') ? undefined : json['simulation'], 'offset': json['offset'], 'value': json['value'], 'units': !exists(json, 'units') ? undefined : json['units'], 'duration': !exists(json, 'duration') ? undefined : json['duration'], 'interpolate': !exists(json, 'interpolate') ? undefined : json['interpolate'], 'diameter': json['diameter'], 'point': PointFromJSON(json['point']), 'uid': !exists(json, 'uid') ? undefined : json['uid'], 'id': !exists(json, 'id') ? undefined : json['id'], }; } export function ConstantLocalRainToJSON(value?: ConstantLocalRain): any { if (value === undefined) { return undefined; } return { 'offset': value.offset, 'value': value.value, 'units': value.units, 'duration': value.duration, 'interpolate': value.interpolate, 'diameter': value.diameter, 'point': PointToJSON(value.point), }; } /** * @export * @enum {string} */ export enum ConstantLocalRainUnitsEnum { MS = 'm/s', MmH = 'mm/h', MmMin = 'mm/min' }