cwmsjs
Version:
CWMS Data API Library for JavaScript/TypeScript created with OpenAPI generator for use with browser webapps
54 lines (53 loc) • 1.94 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.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.AssignedLocationToJSON = exports.AssignedLocationFromJSONTyped = exports.AssignedLocationFromJSON = exports.instanceOfAssignedLocation = void 0;
/**
* Check if a given object implements the AssignedLocation interface.
*/
function instanceOfAssignedLocation(value) {
return true;
}
exports.instanceOfAssignedLocation = instanceOfAssignedLocation;
function AssignedLocationFromJSON(json) {
return AssignedLocationFromJSONTyped(json, false);
}
exports.AssignedLocationFromJSON = AssignedLocationFromJSON;
function AssignedLocationFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'locationId': json['location-id'] == null ? undefined : json['location-id'],
'officeId': json['office-id'] == null ? undefined : json['office-id'],
'aliasId': json['alias-id'] == null ? undefined : json['alias-id'],
'attribute': json['attribute'] == null ? undefined : json['attribute'],
'refLocationId': json['ref-location-id'] == null ? undefined : json['ref-location-id'],
};
}
exports.AssignedLocationFromJSONTyped = AssignedLocationFromJSONTyped;
function AssignedLocationToJSON(value) {
if (value == null) {
return value;
}
return {
'location-id': value['locationId'],
'office-id': value['officeId'],
'alias-id': value['aliasId'],
'attribute': value['attribute'],
'ref-location-id': value['refLocationId'],
};
}
exports.AssignedLocationToJSON = AssignedLocationToJSON;