cwmsjs
Version:
CWMS Data API Library for JavaScript/TypeScript created with OpenAPI generator for use with browser webapps
84 lines (74 loc) • 1.93 kB
text/typescript
/* 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 { mapValues } from '../runtime';
import type { CwmsId } from './CwmsId';
import {
CwmsIdFromJSON,
CwmsIdFromJSONTyped,
CwmsIdToJSON,
} from './CwmsId';
import type { StreamNode } from './StreamNode';
import {
StreamNodeFromJSON,
StreamNodeFromJSONTyped,
StreamNodeToJSON,
} from './StreamNode';
/**
*
* @export
* @interface StreamLocationNode
*/
export interface StreamLocationNode {
/**
*
* @type {CwmsId}
* @memberof StreamLocationNode
*/
id: CwmsId;
/**
*
* @type {StreamNode}
* @memberof StreamLocationNode
*/
streamNode: StreamNode;
}
/**
* Check if a given object implements the StreamLocationNode interface.
*/
export function instanceOfStreamLocationNode(value: object): boolean {
if (!('id' in value)) return false;
if (!('streamNode' in value)) return false;
return true;
}
export function StreamLocationNodeFromJSON(json: any): StreamLocationNode {
return StreamLocationNodeFromJSONTyped(json, false);
}
export function StreamLocationNodeFromJSONTyped(json: any, ignoreDiscriminator: boolean): StreamLocationNode {
if (json == null) {
return json;
}
return {
'id': CwmsIdFromJSON(json['id']),
'streamNode': StreamNodeFromJSON(json['stream-node']),
};
}
export function StreamLocationNodeToJSON(value?: StreamLocationNode | null): any {
if (value == null) {
return value;
}
return {
'id': CwmsIdToJSON(value['id']),
'stream-node': StreamNodeToJSON(value['streamNode']),
};
}