// 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 BreachGraphRequest */ export interface BreachGraphRequest { /** * simulation time in seconds * @type {number} * @memberof BreachGraphRequest */ startTime: number; /** * Maximum number of points of history to return * @type {number} * @memberof BreachGraphRequest */ historyPointsLimit?: number; /** * Subscribe for new results during simulation * @type {boolean} * @memberof BreachGraphRequest */ subscribe: boolean; /** * Max number of items per second for subscription * @type {number} * @memberof BreachGraphRequest */ subscribeRateLimit?: number; /** * * @type {number} * @memberof BreachGraphRequest */ lineId: number; } export function BreachGraphRequestFromJSON(json: any): BreachGraphRequest { return { 'startTime': json['start_time'], 'historyPointsLimit': !exists(json, 'history_points_limit') ? undefined : json['history_points_limit'], 'subscribe': json['subscribe'], 'subscribeRateLimit': !exists(json, 'subscribe_rate_limit') ? undefined : json['subscribe_rate_limit'], 'lineId': json['line_id'], }; } export function BreachGraphRequestToJSON(value?: BreachGraphRequest): any { if (value === undefined) { return undefined; } return { 'start_time': value.startTime, 'history_points_limit': value.historyPointsLimit, 'subscribe': value.subscribe, 'subscribe_rate_limit': value.subscribeRateLimit, 'line_id': value.lineId, }; }