UNPKG

cwmsjs

Version:

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

46 lines (45 loc) 1.58 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 runtime_1 = require("../runtime"); const CwmsId_1 = require("./CwmsId"); const TimeExtents_1 = require("./TimeExtents"); function CwmsIdTimeExtentsEntryFromJSON(json) { return CwmsIdTimeExtentsEntryFromJSONTyped(json, false); } exports.CwmsIdTimeExtentsEntryFromJSON = CwmsIdTimeExtentsEntryFromJSON; function CwmsIdTimeExtentsEntryFromJSONTyped(json, ignoreDiscriminator) { if ((json === undefined) || (json === null)) { return json; } return { 'id': !runtime_1.exists(json, 'id') ? undefined : CwmsId_1.CwmsIdFromJSON(json['id']), 'timeExtents': !runtime_1.exists(json, 'time-extents') ? undefined : TimeExtents_1.TimeExtentsFromJSON(json['time-extents']), }; } exports.CwmsIdTimeExtentsEntryFromJSONTyped = CwmsIdTimeExtentsEntryFromJSONTyped; function CwmsIdTimeExtentsEntryToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'id': CwmsId_1.CwmsIdToJSON(value.id), 'time-extents': TimeExtents_1.TimeExtentsToJSON(value.timeExtents), }; } exports.CwmsIdTimeExtentsEntryToJSON = CwmsIdTimeExtentsEntryToJSON;