cwmsjs
Version:
CWMS Data API Library for JavaScript/TypeScript created with OpenAPI generator for use with browser webapps
78 lines (69 loc) • 1.84 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';
import {
CwmsId,
CwmsIdFromJSON,
CwmsIdFromJSONTyped,
CwmsIdToJSON,
} from './CwmsId';
import {
TimeExtents,
TimeExtentsFromJSON,
TimeExtentsFromJSONTyped,
TimeExtentsToJSON,
} from './TimeExtents';
/**
*
* @export
* @interface CwmsIdTimeExtentsEntry
*/
export interface CwmsIdTimeExtentsEntry {
/**
*
* @type {CwmsId}
* @memberof CwmsIdTimeExtentsEntry
*/
id?: CwmsId;
/**
*
* @type {TimeExtents}
* @memberof CwmsIdTimeExtentsEntry
*/
timeExtents?: TimeExtents;
}
export function CwmsIdTimeExtentsEntryFromJSON(json: any): CwmsIdTimeExtentsEntry {
return CwmsIdTimeExtentsEntryFromJSONTyped(json, false);
}
export function CwmsIdTimeExtentsEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): CwmsIdTimeExtentsEntry {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'id': !exists(json, 'id') ? undefined : CwmsIdFromJSON(json['id']),
'timeExtents': !exists(json, 'time-extents') ? undefined : TimeExtentsFromJSON(json['time-extents']),
};
}
export function CwmsIdTimeExtentsEntryToJSON(value?: CwmsIdTimeExtentsEntry | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'id': CwmsIdToJSON(value.id),
'time-extents': TimeExtentsToJSON(value.timeExtents),
};
}