UNPKG

cwmsjs

Version:

CWMS Data API Library for JavaScript/TypeScript created with OpenAPI generator for use with browser webapps

63 lines (62 loc) 2.85 kB
/* tslint:disable */ /* eslint-disable */ /** * CWMS Data API * CWMS REST API for Data Retrieval * * The version of the OpenAPI document: 2.3.2-2025.03.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * Check if a given object implements the SupplementalStreamflowMeasurement interface. */ export function instanceOfSupplementalStreamflowMeasurement(value) { return true; } export function SupplementalStreamflowMeasurementFromJSON(json) { return SupplementalStreamflowMeasurementFromJSONTyped(json, false); } export function SupplementalStreamflowMeasurementFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'channelFlow': json['channel-flow'] == null ? undefined : json['channel-flow'], 'overbankFlow': json['overbank-flow'] == null ? undefined : json['overbank-flow'], 'overbankMaxDepth': json['overbank-max-depth'] == null ? undefined : json['overbank-max-depth'], 'channelMaxDepth': json['channel-max-depth'] == null ? undefined : json['channel-max-depth'], 'avgVelocity': json['avg-velocity'] == null ? undefined : json['avg-velocity'], 'surfaceVelocity': json['surface-velocity'] == null ? undefined : json['surface-velocity'], 'maxVelocity': json['max-velocity'] == null ? undefined : json['max-velocity'], 'effectiveFlowArea': json['effective-flow-area'] == null ? undefined : json['effective-flow-area'], 'crossSectionalArea': json['cross-sectional-area'] == null ? undefined : json['cross-sectional-area'], 'meanGage': json['mean-gage'] == null ? undefined : json['mean-gage'], 'topWidth': json['top-width'] == null ? undefined : json['top-width'], 'mainChannelArea': json['main-channel-area'] == null ? undefined : json['main-channel-area'], 'overbankArea': json['overbank-area'] == null ? undefined : json['overbank-area'], }; } export function SupplementalStreamflowMeasurementToJSON(value) { if (value == null) { return value; } return { 'channel-flow': value['channelFlow'], 'overbank-flow': value['overbankFlow'], 'overbank-max-depth': value['overbankMaxDepth'], 'channel-max-depth': value['channelMaxDepth'], 'avg-velocity': value['avgVelocity'], 'surface-velocity': value['surfaceVelocity'], 'max-velocity': value['maxVelocity'], 'effective-flow-area': value['effectiveFlowArea'], 'cross-sectional-area': value['crossSectionalArea'], 'mean-gage': value['meanGage'], 'top-width': value['topWidth'], 'main-channel-area': value['mainChannelArea'], 'overbank-area': value['overbankArea'], }; }