UNPKG

cwmsjs

Version:

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

61 lines (60 loc) 2.22 kB
"use strict"; /* 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.PoolToJSON = exports.PoolFromJSONTyped = exports.PoolFromJSON = exports.instanceOfPool = void 0; const PoolNameType_1 = require("./PoolNameType"); /** * Check if a given object implements the Pool interface. */ function instanceOfPool(value) { return true; } exports.instanceOfPool = instanceOfPool; function PoolFromJSON(json) { return PoolFromJSONTyped(json, false); } exports.PoolFromJSON = PoolFromJSON; function PoolFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'poolName': json['poolName'] == null ? undefined : (0, PoolNameType_1.PoolNameTypeFromJSON)(json['poolName']), 'projectId': json['projectId'] == null ? undefined : json['projectId'], 'bottomLevelId': json['bottomLevelId'] == null ? undefined : json['bottomLevelId'], 'topLevelId': json['topLevelId'] == null ? undefined : json['topLevelId'], 'implicit': json['implicit'] == null ? undefined : json['implicit'], 'attribute': json['attribute'] == null ? undefined : json['attribute'], 'description': json['description'] == null ? undefined : json['description'], 'clobText': json['clobText'] == null ? undefined : json['clobText'], }; } exports.PoolFromJSONTyped = PoolFromJSONTyped; function PoolToJSON(value) { if (value == null) { return value; } return { 'poolName': (0, 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;