// 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 DamagePostProcessing */ export interface DamagePostProcessing { /** * * @type {number} * @memberof DamagePostProcessing */ readonly basicPostProcessing?: number; /** * \'min\', \'avg\', or \'max\' * @type {string} * @memberof DamagePostProcessing */ costType: DamagePostProcessingCostTypeEnum; /** * * @type {string} * @memberof DamagePostProcessing */ floodMonth: DamagePostProcessingFloodMonthEnum; /** * time in hours * @type {number} * @memberof DamagePostProcessing */ inundationPeriod: number; /** * time in hours * @type {number} * @memberof DamagePostProcessing */ repairTimeInfrastructure: number; /** * time in hours * @type {number} * @memberof DamagePostProcessing */ repairTimeBuildings: number; } export function DamagePostProcessingFromJSON(json: any): DamagePostProcessing { return { 'basicPostProcessing': !exists(json, 'basic_post_processing') ? undefined : json['basic_post_processing'], 'costType': json['cost_type'], 'floodMonth': json['flood_month'], 'inundationPeriod': json['inundation_period'], 'repairTimeInfrastructure': json['repair_time_infrastructure'], 'repairTimeBuildings': json['repair_time_buildings'], }; } export function DamagePostProcessingToJSON(value?: DamagePostProcessing): any { if (value === undefined) { return undefined; } return { 'cost_type': value.costType, 'flood_month': value.floodMonth, 'inundation_period': value.inundationPeriod, 'repair_time_infrastructure': value.repairTimeInfrastructure, 'repair_time_buildings': value.repairTimeBuildings, }; } /** * @export * @enum {string} */ export enum DamagePostProcessingCostTypeEnum { Min = 'min', Avg = 'avg', Max = 'max' } /** * @export * @enum {string} */ export enum DamagePostProcessingFloodMonthEnum { Jan = 'jan', Feb = 'feb', Mar = 'mar', Apr = 'apr', May = 'may', Jun = 'jun', Jul = 'jul', Aug = 'aug', Sep = 'sep', Oct = 'oct', Nov = 'nov', Dec = 'dec' }