UNPKG

cwmsjs

Version:

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

47 lines (46 loc) 1.31 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'; import { StreamNodeFromJSON, StreamNodeToJSON, } from './StreamNode'; /** * Check if a given object implements the StreamLocationNode interface. */ export function instanceOfStreamLocationNode(value) { if (!('id' in value)) return false; if (!('streamNode' in value)) return false; return true; } export function StreamLocationNodeFromJSON(json) { return StreamLocationNodeFromJSONTyped(json, false); } export function StreamLocationNodeFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'id': CwmsIdFromJSON(json['id']), 'streamNode': StreamNodeFromJSON(json['stream-node']), }; } export function StreamLocationNodeToJSON(value) { if (value == null) { return value; } return { 'id': CwmsIdToJSON(value['id']), 'stream-node': StreamNodeToJSON(value['streamNode']), }; }