cwmsjs
Version:
CWMS Data API Library for JavaScript/TypeScript created with OpenAPI generator for use with browser webapps
70 lines (69 loc) • 3.51 kB
JavaScript
;
/* 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.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.SupplementalStreamflowMeasurementToJSON = exports.SupplementalStreamflowMeasurementFromJSONTyped = exports.SupplementalStreamflowMeasurementFromJSON = exports.instanceOfSupplementalStreamflowMeasurement = void 0;
/**
* Check if a given object implements the SupplementalStreamflowMeasurement interface.
*/
function instanceOfSupplementalStreamflowMeasurement(value) {
return true;
}
exports.instanceOfSupplementalStreamflowMeasurement = instanceOfSupplementalStreamflowMeasurement;
function SupplementalStreamflowMeasurementFromJSON(json) {
return SupplementalStreamflowMeasurementFromJSONTyped(json, false);
}
exports.SupplementalStreamflowMeasurementFromJSON = SupplementalStreamflowMeasurementFromJSON;
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'],
};
}
exports.SupplementalStreamflowMeasurementFromJSONTyped = SupplementalStreamflowMeasurementFromJSONTyped;
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'],
};
}
exports.SupplementalStreamflowMeasurementToJSON = SupplementalStreamflowMeasurementToJSON;