// 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 { FileReadOnly, FileReadOnlyFromJSON, FileReadOnlyToJSON, } from './'; /** * * @export * @interface NetCDFRasterSourcesSinks */ export interface NetCDFRasterSourcesSinks { /** * * @type {string} * @memberof NetCDFRasterSourcesSinks */ readonly url?: string; /** * * @type {number} * @memberof NetCDFRasterSourcesSinks */ multiplier?: number; /** * * @type {string} * @memberof NetCDFRasterSourcesSinks */ readonly simulation?: string; /** * offset of event in simulation in seconds * @type {number} * @memberof NetCDFRasterSourcesSinks */ offset?: number | null; /** * Duration of event in seconds * @type {number} * @memberof NetCDFRasterSourcesSinks */ duration?: number | null; /** * in simulation in seconds * @type {Array} * @memberof NetCDFRasterSourcesSinks */ timestamps?: Array | null; /** * interval in seconds * @type {number} * @memberof NetCDFRasterSourcesSinks */ interval?: number | null; /** * * @type {string} * @memberof NetCDFRasterSourcesSinks */ valuesReference?: string | null; /** * * @type {string} * @memberof NetCDFRasterSourcesSinks */ units?: NetCDFRasterSourcesSinksUnitsEnum; /** * * @type {Array} * @memberof NetCDFRasterSourcesSinks */ geotransform?: Array; /** * * @type {number} * @memberof NetCDFRasterSourcesSinks */ epsgCode?: number; /** * * @type {FileReadOnly} * @memberof NetCDFRasterSourcesSinks */ file?: FileReadOnly; /** * * @type {string} * @memberof NetCDFRasterSourcesSinks */ fillValue?: string; /** * * @type {number} * @memberof NetCDFRasterSourcesSinks */ readonly id?: number; /** * * @type {string} * @memberof NetCDFRasterSourcesSinks */ readonly uid?: string; } export function NetCDFRasterSourcesSinksFromJSON(json: any): NetCDFRasterSourcesSinks { return { 'url': !exists(json, 'url') ? undefined : json['url'], 'multiplier': !exists(json, 'multiplier') ? undefined : json['multiplier'], 'simulation': !exists(json, 'simulation') ? undefined : json['simulation'], 'offset': !exists(json, 'offset') ? undefined : json['offset'], 'duration': !exists(json, 'duration') ? undefined : json['duration'], 'timestamps': !exists(json, 'timestamps') ? undefined : json['timestamps'], 'interval': !exists(json, 'interval') ? undefined : json['interval'], 'valuesReference': !exists(json, 'values_reference') ? undefined : json['values_reference'], 'units': !exists(json, 'units') ? undefined : json['units'], 'geotransform': !exists(json, 'geotransform') ? undefined : json['geotransform'], 'epsgCode': !exists(json, 'epsg_code') ? undefined : json['epsg_code'], 'file': !exists(json, 'file') ? undefined : FileReadOnlyFromJSON(json['file']), 'fillValue': !exists(json, 'fill_value') ? undefined : json['fill_value'], 'id': !exists(json, 'id') ? undefined : json['id'], 'uid': !exists(json, 'uid') ? undefined : json['uid'], }; } export function NetCDFRasterSourcesSinksToJSON(value?: NetCDFRasterSourcesSinks): any { if (value === undefined) { return undefined; } return { 'multiplier': value.multiplier, 'offset': value.offset, 'duration': value.duration, 'timestamps': value.timestamps, 'interval': value.interval, 'values_reference': value.valuesReference, 'units': value.units, 'geotransform': value.geotransform, 'epsg_code': value.epsgCode, 'file': FileReadOnlyToJSON(value.file), 'fill_value': value.fillValue, }; } /** * @export * @enum {string} */ export enum NetCDFRasterSourcesSinksUnitsEnum { MS = 'm/s', Mm = 'mm', MmH = 'mm/h', MmHr = 'mm/hr' }