// 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 PotentialBreach */ export interface PotentialBreach { /** * * @type {string} * @memberof PotentialBreach */ readonly url?: string; /** * * @type {number} * @memberof PotentialBreach */ connectedPntId: number; /** * * @type {string} * @memberof PotentialBreach */ leveeMaterial: PotentialBreachLeveeMaterialEnum; /** * * @type {number} * @memberof PotentialBreach */ lineId: number; /** * * @type {number} * @memberof PotentialBreach */ maximumBreachDepth: number; /** * * @type {string} * @memberof PotentialBreach */ readonly threedimodel?: string; /** * * @type {number} * @memberof PotentialBreach */ readonly id?: number; } export function PotentialBreachFromJSON(json: any): PotentialBreach { return { 'url': !exists(json, 'url') ? undefined : json['url'], 'connectedPntId': json['connected_pnt_id'], 'leveeMaterial': json['levee_material'], 'lineId': json['line_id'], 'maximumBreachDepth': json['maximum_breach_depth'], 'threedimodel': !exists(json, 'threedimodel') ? undefined : json['threedimodel'], 'id': !exists(json, 'id') ? undefined : json['id'], }; } export function PotentialBreachToJSON(value?: PotentialBreach): any { if (value === undefined) { return undefined; } return { 'connected_pnt_id': value.connectedPntId, 'levee_material': value.leveeMaterial, 'line_id': value.lineId, 'maximum_breach_depth': value.maximumBreachDepth, }; } /** * @export * @enum {string} */ export enum PotentialBreachLeveeMaterialEnum { Sand = 'sand', Clay = 'clay' }