cwmsjs
Version:
CWMS Data API Library for JavaScript/TypeScript created with OpenAPI generator for use with browser webapps
54 lines (53 loc) • 1.35 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 { LocationFromJSON, LocationToJSON, } from './Location';
/**
* @export
*/
export const WaterSupplyPumpPumpTypeEnum = {
In: 'IN',
Out: 'OUT',
Below: 'BELOW'
};
/**
* Check if a given object implements the WaterSupplyPump interface.
*/
export function instanceOfWaterSupplyPump(value) {
if (!('pumpLocation' in value))
return false;
if (!('pumpType' in value))
return false;
return true;
}
export function WaterSupplyPumpFromJSON(json) {
return WaterSupplyPumpFromJSONTyped(json, false);
}
export function WaterSupplyPumpFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'pumpLocation': LocationFromJSON(json['pumpLocation']),
'pumpType': json['pumpType'],
};
}
export function WaterSupplyPumpToJSON(value) {
if (value == null) {
return value;
}
return {
'pumpLocation': LocationToJSON(value['pumpLocation']),
'pumpType': value['pumpType'],
};
}