cwmsjs
Version:
CWMS Data API Library for JavaScript/TypeScript created with OpenAPI generator for use with browser webapps
54 lines (53 loc) • 1.89 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.
*/
import { PoolNameTypeFromJSON, PoolNameTypeToJSON, } from './PoolNameType';
/**
* Check if a given object implements the Pool interface.
*/
export function instanceOfPool(value) {
return true;
}
export function PoolFromJSON(json) {
return PoolFromJSONTyped(json, false);
}
export function PoolFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'poolName': json['poolName'] == null ? undefined : 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'],
};
}
export function PoolToJSON(value) {
if (value == null) {
return value;
}
return {
'poolName': PoolNameTypeToJSON(value['poolName']),
'projectId': value['projectId'],
'bottomLevelId': value['bottomLevelId'],
'topLevelId': value['topLevelId'],
'implicit': value['implicit'],
'attribute': value['attribute'],
'description': value['description'],
'clobText': value['clobText'],
};
}