// 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 PhysicalSettings */ export interface PhysicalSettings { /** * * @type {number} * @memberof PhysicalSettings */ readonly id?: number; /** * * @type {number} * @memberof PhysicalSettings */ readonly simulationId?: number; /** * Options: 0 = off 1 = standard * @type {number} * @memberof PhysicalSettings */ useAdvection1d: number; /** * Options: 0 = off 1 = standard * @type {number} * @memberof PhysicalSettings */ useAdvection2d: number; } export function PhysicalSettingsFromJSON(json: any): PhysicalSettings { return { 'id': !exists(json, 'id') ? undefined : json['id'], 'simulationId': !exists(json, 'simulation_id') ? undefined : json['simulation_id'], 'useAdvection1d': json['use_advection_1d'], 'useAdvection2d': json['use_advection_2d'], }; } export function PhysicalSettingsToJSON(value?: PhysicalSettings): any { if (value === undefined) { return undefined; } return { 'use_advection_1d': value.useAdvection1d, 'use_advection_2d': value.useAdvection2d, }; }