/* tslint:disable */
/* eslint-disable */
/**
 * CWMS Data API
 * CWMS REST API for Data Retrieval
 *
 * The version of the OpenAPI document: 2.4.0-2026.3.16
 * 
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

import { exists, mapValues } from '../runtime';
import {
    CwmsId,
    CwmsIdFromJSON,
    CwmsIdFromJSONTyped,
    CwmsIdToJSON,
} from './CwmsId';
import {
    StreamNode,
    StreamNodeFromJSON,
    StreamNodeFromJSONTyped,
    StreamNodeToJSON,
} from './StreamNode';

/**
 * 
 * @export
 * @interface StreamLocationNode
 */
export interface StreamLocationNode {
    /**
     * 
     * @type {CwmsId}
     * @memberof StreamLocationNode
     */
    id: CwmsId;
    /**
     * 
     * @type {StreamNode}
     * @memberof StreamLocationNode
     */
    streamNode: StreamNode;
}

export function StreamLocationNodeFromJSON(json: any): StreamLocationNode {
    return StreamLocationNodeFromJSONTyped(json, false);
}

export function StreamLocationNodeFromJSONTyped(json: any, ignoreDiscriminator: boolean): StreamLocationNode {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        
        'id': CwmsIdFromJSON(json['id']),
        'streamNode': StreamNodeFromJSON(json['stream-node']),
    };
}

export function StreamLocationNodeToJSON(value?: StreamLocationNode | null): any {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        
        'id': CwmsIdToJSON(value.id),
        'stream-node': StreamNodeToJSON(value.streamNode),
    };
}

