// 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 Wind */ export interface Wind { /** * * @type {number} * @memberof Wind */ readonly id?: number; /** * * @type {string} * @memberof Wind */ readonly uid?: string; /** * * @type {string} * @memberof Wind */ readonly url?: string; /** * * @type {string} * @memberof Wind */ readonly simulation?: string; /** * offset of event in simulation in seconds * @type {number} * @memberof Wind */ offset: number; /** * [time, speed, direction] * @type {Array>} * @memberof Wind */ values?: Array>; /** * wind speed unit (default \'m/s\') * @type {string} * @memberof Wind */ units?: WindUnitsEnum; /** * interpolate wind speed * @type {boolean} * @memberof Wind */ readonly speedInterpolate?: boolean; /** * constant wind speed * @type {boolean} * @memberof Wind */ readonly speedConstant?: boolean; /** * interpolate wind direction * @type {boolean} * @memberof Wind */ readonly directionInterpolate?: boolean; /** * constant wind direction * @type {boolean} * @memberof Wind */ readonly directionConstant?: boolean; } export function WindFromJSON(json: any): Wind { return { 'id': !exists(json, 'id') ? undefined : json['id'], 'uid': !exists(json, 'uid') ? undefined : json['uid'], 'url': !exists(json, 'url') ? undefined : json['url'], 'simulation': !exists(json, 'simulation') ? undefined : json['simulation'], 'offset': json['offset'], 'values': !exists(json, 'values') ? undefined : json['values'], 'units': !exists(json, 'units') ? undefined : json['units'], 'speedInterpolate': !exists(json, 'speed_interpolate') ? undefined : json['speed_interpolate'], 'speedConstant': !exists(json, 'speed_constant') ? undefined : json['speed_constant'], 'directionInterpolate': !exists(json, 'direction_interpolate') ? undefined : json['direction_interpolate'], 'directionConstant': !exists(json, 'direction_constant') ? undefined : json['direction_constant'], }; } export function WindToJSON(value?: Wind): any { if (value === undefined) { return undefined; } return { 'offset': value.offset, 'values': value.values, 'units': value.units, }; } /** * @export * @enum {string} */ export enum WindUnitsEnum { MS = 'm/s', KmH = 'km/h' }