UNPKG

cwmsjs

Version:

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

55 lines (54 loc) 1.47 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. */ import { CwmsIdFromJSON, CwmsIdToJSON, } from './CwmsId'; /** * @export */ export const StreamNodeBankEnum = { L: 'L', R: 'R' }; /** * Check if a given object implements the StreamNode interface. */ export function instanceOfStreamNode(value) { if (!('streamId' in value)) return false; return true; } export function StreamNodeFromJSON(json) { return StreamNodeFromJSONTyped(json, false); } export function StreamNodeFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'streamId': CwmsIdFromJSON(json['stream-id']), 'bank': json['bank'] == null ? undefined : json['bank'], 'station': json['station'] == null ? undefined : json['station'], 'stationUnits': json['station-units'] == null ? undefined : json['station-units'], }; } export function StreamNodeToJSON(value) { if (value == null) { return value; } return { 'stream-id': CwmsIdToJSON(value['streamId']), 'bank': value['bank'], 'station': value['station'], 'station-units': value['stationUnits'], }; }