UNPKG

cwmsjs

Version:

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

73 lines (65 loc) 1.64 kB
/* 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 DataColumnInfo */ export interface DataColumnInfo { /** * * @type {string} * @memberof DataColumnInfo */ name?: string; /** * * @type {number} * @memberof DataColumnInfo */ ordinal?: number; /** * * @type {string} * @memberof DataColumnInfo */ datatype?: string; } export function DataColumnInfoFromJSON(json: any): DataColumnInfo { return DataColumnInfoFromJSONTyped(json, false); } export function DataColumnInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DataColumnInfo { 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 DataColumnInfoToJSON(value?: DataColumnInfo | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'name': value.name, 'ordinal': value.ordinal, 'datatype': value.datatype, }; }