UNPKG

cwmsjs

Version:

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

43 lines (42 loc) 1.22 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 StreamflowMeasurement interface. */ export function instanceOfStreamflowMeasurement(value) { return true; } export function StreamflowMeasurementFromJSON(json) { return StreamflowMeasurementFromJSONTyped(json, false); } export function StreamflowMeasurementFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'gageHeight': json['gage-height'] == null ? undefined : json['gage-height'], 'flow': json['flow'] == null ? undefined : json['flow'], 'quality': json['quality'] == null ? undefined : json['quality'], }; } export function StreamflowMeasurementToJSON(value) { if (value == null) { return value; } return { 'gage-height': value['gageHeight'], 'flow': value['flow'], 'quality': value['quality'], }; }