cwmsjs
Version:
CWMS Data API Library for JavaScript/TypeScript created with OpenAPI generator for use with browser webapps
47 lines (46 loc) • 1.46 kB
JavaScript
;
/* tslint:disable */
/* eslint-disable */
/**
* CWMS Data API
* CWMS REST API for Data Retrieval
*
* The version of the OpenAPI document: 2.3.2-2025.03.19
*
*
* 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 });
exports.TimeZonesToJSON = exports.TimeZonesFromJSONTyped = exports.TimeZonesFromJSON = exports.instanceOfTimeZones = void 0;
const TimeZone_1 = require("./TimeZone");
/**
* Check if a given object implements the TimeZones interface.
*/
function instanceOfTimeZones(value) {
return true;
}
exports.instanceOfTimeZones = instanceOfTimeZones;
function TimeZonesFromJSON(json) {
return TimeZonesFromJSONTyped(json, false);
}
exports.TimeZonesFromJSON = TimeZonesFromJSON;
function TimeZonesFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'timeZones': json['time-zones'] == null ? undefined : (json['time-zones'].map(TimeZone_1.TimeZoneFromJSON)),
};
}
exports.TimeZonesFromJSONTyped = TimeZonesFromJSONTyped;
function TimeZonesToJSON(value) {
if (value == null) {
return value;
}
return {
'time-zones': value['timeZones'] == null ? undefined : (value['timeZones'].map(TimeZone_1.TimeZoneToJSON)),
};
}
exports.TimeZonesToJSON = TimeZonesToJSON;