cwmsjs
Version:
CWMS Data API Library for JavaScript/TypeScript created with OpenAPI generator for use with browser webapps
52 lines (51 loc) • 1.46 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 { CwmsIdFromJSON, CwmsIdToJSON, } from './CwmsId';
/**
* @export
*/
export const LocationsWithProjectKindKindEnum = {
Embankment: 'EMBANKMENT',
Turbine: 'TURBINE',
Outlet: 'OUTLET',
Lock: 'LOCK',
Gate: 'GATE'
};
/**
* Check if a given object implements the LocationsWithProjectKind interface.
*/
export function instanceOfLocationsWithProjectKind(value) {
return true;
}
export function LocationsWithProjectKindFromJSON(json) {
return LocationsWithProjectKindFromJSONTyped(json, false);
}
export function LocationsWithProjectKindFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'kind': json['kind'] == null ? undefined : json['kind'],
'locationIds': json['location-ids'] == null ? undefined : (json['location-ids'].map(CwmsIdFromJSON)),
};
}
export function LocationsWithProjectKindToJSON(value) {
if (value == null) {
return value;
}
return {
'kind': value['kind'],
'location-ids': value['locationIds'] == null ? undefined : (value['locationIds'].map(CwmsIdToJSON)),
};
}