// 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 MeasureLocation */ export interface MeasureLocation { /** * * @type {number} * @memberof MeasureLocation */ readonly id?: number; /** * * @type {string} * @memberof MeasureLocation */ weight: string; /** * e.g. * @type {string} * @memberof MeasureLocation */ contentType: MeasureLocationContentTypeEnum; /** * * @type {number} * @memberof MeasureLocation */ contentPk: number; /** * * @type {number} * @memberof MeasureLocation */ gridId?: number | null; /** * * @type {string} * @memberof MeasureLocation */ readonly state?: MeasureLocationStateEnum; /** * * @type {object} * @memberof MeasureLocation */ readonly stateDetail?: object; } export function MeasureLocationFromJSON(json: any): MeasureLocation { return { 'id': !exists(json, 'id') ? undefined : json['id'], 'weight': json['weight'], 'contentType': json['content_type'], 'contentPk': json['content_pk'], 'gridId': !exists(json, 'grid_id') ? undefined : json['grid_id'], 'state': !exists(json, 'state') ? undefined : json['state'], 'stateDetail': !exists(json, 'state_detail') ? undefined : json['state_detail'], }; } export function MeasureLocationToJSON(value?: MeasureLocation): any { if (value === undefined) { return undefined; } return { 'weight': value.weight, 'content_type': value.contentType, 'content_pk': value.contentPk, 'grid_id': value.gridId, }; } /** * @export * @enum {string} */ export enum MeasureLocationContentTypeEnum { ConnectionNode = 'v2_connection_node', Pipe = 'v2_pipe', Orifice = 'v2_orifice', Culvert = 'v2_culvert', Channel = 'v2_channel', Weir = 'v2_weir' } /** * @export * @enum {string} */ export enum MeasureLocationStateEnum { Processing = 'processing', Valid = 'valid', Invalid = 'invalid' }