cwmsjs
Version:
CWMS Data API Library for JavaScript/TypeScript created with OpenAPI generator for use with browser webapps
51 lines (50 loc) • 1.85 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.LocationLevelsToJSON = exports.LocationLevelsFromJSONTyped = exports.LocationLevelsFromJSON = exports.instanceOfLocationLevels = void 0;
const LocationLevel_1 = require("./LocationLevel");
/**
* Check if a given object implements the LocationLevels interface.
*/
function instanceOfLocationLevels(value) {
return true;
}
exports.instanceOfLocationLevels = instanceOfLocationLevels;
function LocationLevelsFromJSON(json) {
return LocationLevelsFromJSONTyped(json, false);
}
exports.LocationLevelsFromJSON = LocationLevelsFromJSON;
function LocationLevelsFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'levels': json['levels'] == null ? undefined : (json['levels'].map(LocationLevel_1.LocationLevelFromJSON)),
'nextPage': json['next-page'] == null ? undefined : json['next-page'],
'page': json['page'] == null ? undefined : json['page'],
'pageSize': json['page-size'] == null ? undefined : json['page-size'],
'total': json['total'] == null ? undefined : json['total'],
};
}
exports.LocationLevelsFromJSONTyped = LocationLevelsFromJSONTyped;
function LocationLevelsToJSON(value) {
if (value == null) {
return value;
}
return {
'levels': value['levels'] == null ? undefined : (value['levels'].map(LocationLevel_1.LocationLevelToJSON)),
};
}
exports.LocationLevelsToJSON = LocationLevelsToJSON;