UNPKG

cwmsjs

Version:

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

56 lines (49 loc) 1.51 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 { LocationCatalogEntry, LocationCatalogEntryFromJSON, LocationCatalogEntryFromJSONTyped, LocationCatalogEntryToJSON, } from './LocationCatalogEntry'; import { TimeSeriesCatalogEntry, TimeSeriesCatalogEntryFromJSON, TimeSeriesCatalogEntryFromJSONTyped, TimeSeriesCatalogEntryToJSON, } from './TimeSeriesCatalogEntry'; /** * @type CatalogEntry * * @export */ export type CatalogEntry = LocationCatalogEntry | TimeSeriesCatalogEntry; export function CatalogEntryFromJSON(json: any): CatalogEntry { return CatalogEntryFromJSONTyped(json, false); } export function CatalogEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): CatalogEntry { if ((json === undefined) || (json === null)) { return json; } return { ...LocationCatalogEntryFromJSONTyped(json, true), ...TimeSeriesCatalogEntryFromJSONTyped(json, true) }; } export function CatalogEntryToJSON(value?: CatalogEntry | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { ...LocationCatalogEntryToJSON(value), ...TimeSeriesCatalogEntryToJSON(value) }; }