cwmsjs
Version:
CWMS Data API Library for JavaScript/TypeScript created with OpenAPI generator for use with browser webapps
48 lines (47 loc) • 1.3 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.TimeZoneToJSON = exports.TimeZoneFromJSONTyped = exports.TimeZoneFromJSON = exports.instanceOfTimeZone = void 0;
/**
* Check if a given object implements the TimeZone interface.
*/
function instanceOfTimeZone(value) {
if (!('timeZone' in value))
return false;
return true;
}
exports.instanceOfTimeZone = instanceOfTimeZone;
function TimeZoneFromJSON(json) {
return TimeZoneFromJSONTyped(json, false);
}
exports.TimeZoneFromJSON = TimeZoneFromJSON;
function TimeZoneFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'timeZone': json['time-zone'],
};
}
exports.TimeZoneFromJSONTyped = TimeZoneFromJSONTyped;
function TimeZoneToJSON(value) {
if (value == null) {
return value;
}
return {
'time-zone': value['timeZone'],
};
}
exports.TimeZoneToJSON = TimeZoneToJSON;