UNPKG

cwmsjs

Version:

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

41 lines (40 loc) 1.84 kB
"use strict"; /* 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. */ Object.defineProperty(exports, "__esModule", { value: true }); const ConstantLocationLevel_1 = require("./ConstantLocationLevel"); const SeasonalLocationLevel_1 = require("./SeasonalLocationLevel"); const TimeSeriesLocationLevel_1 = require("./TimeSeriesLocationLevel"); const VirtualLocationLevel_1 = require("./VirtualLocationLevel"); function LocationLevelFromJSON(json) { return LocationLevelFromJSONTyped(json, false); } exports.LocationLevelFromJSON = LocationLevelFromJSON; function LocationLevelFromJSONTyped(json, ignoreDiscriminator) { if ((json === undefined) || (json === null)) { return json; } return Object.assign({}, ConstantLocationLevel_1.ConstantLocationLevelFromJSONTyped(json, true), SeasonalLocationLevel_1.SeasonalLocationLevelFromJSONTyped(json, true), TimeSeriesLocationLevel_1.TimeSeriesLocationLevelFromJSONTyped(json, true), VirtualLocationLevel_1.VirtualLocationLevelFromJSONTyped(json, true)); } exports.LocationLevelFromJSONTyped = LocationLevelFromJSONTyped; function LocationLevelToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return Object.assign({}, ConstantLocationLevel_1.ConstantLocationLevelToJSON(value), SeasonalLocationLevel_1.SeasonalLocationLevelToJSON(value), TimeSeriesLocationLevel_1.TimeSeriesLocationLevelToJSON(value), VirtualLocationLevel_1.VirtualLocationLevelToJSON(value)); } exports.LocationLevelToJSON = LocationLevelToJSON;