cwmsjs
Version:
CWMS Data API Library for JavaScript/TypeScript created with OpenAPI generator for use with browser webapps
73 lines (65 loc) • 1.67 kB
text/typescript
/* 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';
/**
*
* @export
* @interface TimeSeriesColumn
*/
export interface TimeSeriesColumn {
/**
*
* @type {string}
* @memberof TimeSeriesColumn
*/
name?: string;
/**
*
* @type {number}
* @memberof TimeSeriesColumn
*/
ordinal?: number;
/**
*
* @type {string}
* @memberof TimeSeriesColumn
*/
datatype?: string;
}
export function TimeSeriesColumnFromJSON(json: any): TimeSeriesColumn {
return TimeSeriesColumnFromJSONTyped(json, false);
}
export function TimeSeriesColumnFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimeSeriesColumn {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'name': !exists(json, 'name') ? undefined : json['name'],
'ordinal': !exists(json, 'ordinal') ? undefined : json['ordinal'],
'datatype': !exists(json, 'datatype') ? undefined : json['datatype'],
};
}
export function TimeSeriesColumnToJSON(value?: TimeSeriesColumn | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'name': value.name,
'ordinal': value.ordinal,
'datatype': value.datatype,
};
}