UNPKG

cwmsjs

Version:

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

90 lines (83 loc) 2.55 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'; import { CwmsId, CwmsIdFromJSON, CwmsIdFromJSONTyped, CwmsIdToJSON, } from './CwmsId'; import { ParameterInfo, ParameterInfoFromJSON, ParameterInfoFromJSONTyped, ParameterInfoToJSON, } from './ParameterInfo'; import { TimeSeriesProfileParser, TimeSeriesProfileParserFromJSON, TimeSeriesProfileParserFromJSONTyped, TimeSeriesProfileParserToJSON, } from './TimeSeriesProfileParser'; import { TimeSeriesProfileParserColumnarAllOf, TimeSeriesProfileParserColumnarAllOfFromJSON, TimeSeriesProfileParserColumnarAllOfFromJSONTyped, TimeSeriesProfileParserColumnarAllOfToJSON, } from './TimeSeriesProfileParserColumnarAllOf'; /** * * @export * @interface TimeSeriesProfileParserColumnar */ export interface TimeSeriesProfileParserColumnar extends TimeSeriesProfileParser { /** * * @type {number} * @memberof TimeSeriesProfileParserColumnar */ timeStartColumn?: number; /** * * @type {number} * @memberof TimeSeriesProfileParserColumnar */ timeEndColumn?: number; } export function TimeSeriesProfileParserColumnarFromJSON(json: any): TimeSeriesProfileParserColumnar { return TimeSeriesProfileParserColumnarFromJSONTyped(json, false); } export function TimeSeriesProfileParserColumnarFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimeSeriesProfileParserColumnar { if ((json === undefined) || (json === null)) { return json; } return { ...TimeSeriesProfileParserFromJSONTyped(json, ignoreDiscriminator), 'timeStartColumn': !exists(json, 'time-start-column') ? undefined : json['time-start-column'], 'timeEndColumn': !exists(json, 'time-end-column') ? undefined : json['time-end-column'], }; } export function TimeSeriesProfileParserColumnarToJSON(value?: TimeSeriesProfileParserColumnar | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { ...TimeSeriesProfileParserToJSON(value), 'time-start-column': value.timeStartColumn, 'time-end-column': value.timeEndColumn, }; }