// 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 GroundWaterRaster */ export interface GroundWaterRaster { /** * * @type {string} * @memberof GroundWaterRaster */ readonly url?: string; /** * * @type {string} * @memberof GroundWaterRaster */ readonly simulation?: string; /** * * @type {string} * @memberof GroundWaterRaster */ aggregationMethod: GroundWaterRasterAggregationMethodEnum; /** * * @type {string} * @memberof GroundWaterRaster */ initialWaterlevel: string; /** * * @type {number} * @memberof GroundWaterRaster */ readonly initialWaterlevelId?: number; /** * * @type {string} * @memberof GroundWaterRaster */ readonly uid?: string; /** * * @type {number} * @memberof GroundWaterRaster */ readonly id?: number; } export function GroundWaterRasterFromJSON(json: any): GroundWaterRaster { return { 'url': !exists(json, 'url') ? undefined : json['url'], 'simulation': !exists(json, 'simulation') ? undefined : json['simulation'], 'aggregationMethod': json['aggregation_method'], 'initialWaterlevel': json['initial_waterlevel'], 'initialWaterlevelId': !exists(json, 'initial_waterlevel_id') ? undefined : json['initial_waterlevel_id'], 'uid': !exists(json, 'uid') ? undefined : json['uid'], 'id': !exists(json, 'id') ? undefined : json['id'], }; } export function GroundWaterRasterToJSON(value?: GroundWaterRaster): any { if (value === undefined) { return undefined; } return { 'aggregation_method': value.aggregationMethod, 'initial_waterlevel': value.initialWaterlevel, }; } /** * @export * @enum {string} */ export enum GroundWaterRasterAggregationMethodEnum { Mean = 'mean', Max = 'max', Min = 'min' }