cwmsjs
Version:
CWMS Data API Library for JavaScript/TypeScript created with OpenAPI generator for use with browser webapps
57 lines (56 loc) • 2.14 kB
JavaScript
;
/* 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 PoolNameType_1 = require("./PoolNameType");
function PoolFromJSON(json) {
return PoolFromJSONTyped(json, false);
}
exports.PoolFromJSON = PoolFromJSON;
function PoolFromJSONTyped(json, ignoreDiscriminator) {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'poolName': !runtime_1.exists(json, 'poolName') ? undefined : PoolNameType_1.PoolNameTypeFromJSON(json['poolName']),
'projectId': !runtime_1.exists(json, 'projectId') ? undefined : json['projectId'],
'bottomLevelId': !runtime_1.exists(json, 'bottomLevelId') ? undefined : json['bottomLevelId'],
'topLevelId': !runtime_1.exists(json, 'topLevelId') ? undefined : json['topLevelId'],
'implicit': !runtime_1.exists(json, 'implicit') ? undefined : json['implicit'],
'attribute': !runtime_1.exists(json, 'attribute') ? undefined : json['attribute'],
'description': !runtime_1.exists(json, 'description') ? undefined : json['description'],
'clobText': !runtime_1.exists(json, 'clobText') ? undefined : json['clobText'],
};
}
exports.PoolFromJSONTyped = PoolFromJSONTyped;
function PoolToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'poolName': PoolNameType_1.PoolNameTypeToJSON(value.poolName),
'projectId': value.projectId,
'bottomLevelId': value.bottomLevelId,
'topLevelId': value.topLevelId,
'implicit': value.implicit,
'attribute': value.attribute,
'description': value.description,
'clobText': value.clobText,
};
}
exports.PoolToJSON = PoolToJSON;