// 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 TimeseriesSourcesSinksOverview */ export interface TimeseriesSourcesSinksOverview { /** * * @type {string} * @memberof TimeseriesSourcesSinksOverview */ readonly url?: string; /** * * @type {string} * @memberof TimeseriesSourcesSinksOverview */ readonly simulation?: string; /** * offset of event in simulation in seconds * @type {number} * @memberof TimeseriesSourcesSinksOverview */ offset: number; /** * * @type {boolean} * @memberof TimeseriesSourcesSinksOverview */ interpolate?: boolean; /** * Timeseries provided as a nested list. The inner list consists of exactly 2 values: timestamp, value * @type {Array>} * @memberof TimeseriesSourcesSinksOverview */ values: Array>; /** * \'m/s\' (only option for now) * @type {string} * @memberof TimeseriesSourcesSinksOverview */ units: TimeseriesSourcesSinksOverviewUnitsEnum; /** * * @type {boolean} * @memberof TimeseriesSourcesSinksOverview */ readonly constant?: boolean; /** * * @type {string} * @memberof TimeseriesSourcesSinksOverview */ readonly uid?: string; /** * * @type {number} * @memberof TimeseriesSourcesSinksOverview */ readonly id?: number; } export function TimeseriesSourcesSinksOverviewFromJSON(json: any): TimeseriesSourcesSinksOverview { return { 'url': !exists(json, 'url') ? undefined : json['url'], 'simulation': !exists(json, 'simulation') ? undefined : json['simulation'], 'offset': json['offset'], 'interpolate': !exists(json, 'interpolate') ? undefined : json['interpolate'], 'values': json['values'], 'units': json['units'], 'constant': !exists(json, 'constant') ? undefined : json['constant'], 'uid': !exists(json, 'uid') ? undefined : json['uid'], 'id': !exists(json, 'id') ? undefined : json['id'], }; } export function TimeseriesSourcesSinksOverviewToJSON(value?: TimeseriesSourcesSinksOverview): any { if (value === undefined) { return undefined; } return { 'offset': value.offset, 'interpolate': value.interpolate, 'values': value.values, 'units': value.units, }; } /** * @export * @enum {string} */ export enum TimeseriesSourcesSinksOverviewUnitsEnum { MS = 'm/s' }