// 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 BoundaryCondition */ export interface BoundaryCondition { /** * * @type {number} * @memberof BoundaryCondition */ readonly id?: number; /** * * @type {string} * @memberof BoundaryCondition */ readonly url?: string; /** * * @type {number} * @memberof BoundaryCondition */ boundaryId: number; /** * * @type {string} * @memberof BoundaryCondition */ readonly threedimodel?: string; /** * * @type {string} * @memberof BoundaryCondition */ type: BoundaryConditionTypeEnum; /** * * @type {string} * @memberof BoundaryCondition */ dimension: BoundaryConditionDimensionEnum; } export function BoundaryConditionFromJSON(json: any): BoundaryCondition { return { 'id': !exists(json, 'id') ? undefined : json['id'], 'url': !exists(json, 'url') ? undefined : json['url'], 'boundaryId': json['boundary_id'], 'threedimodel': !exists(json, 'threedimodel') ? undefined : json['threedimodel'], 'type': json['type'], 'dimension': json['dimension'], }; } export function BoundaryConditionToJSON(value?: BoundaryCondition): any { if (value === undefined) { return undefined; } return { 'boundary_id': value.boundaryId, 'type': value.type, 'dimension': value.dimension, }; } /** * @export * @enum {string} */ export enum BoundaryConditionTypeEnum { Velocity = 'velocity', Sommerfeldt = 'sommerfeldt', Riemann = 'riemann', WaterLevel = 'water_level', Discharge = 'discharge' } /** * @export * @enum {string} */ export enum BoundaryConditionDimensionEnum { OneD = 'one_d', TwoD = 'two_d' }