cwmsjs
Version:
CWMS Data API Library for JavaScript/TypeScript created with OpenAPI generator for use with browser webapps
63 lines (62 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.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.OfficeToJSON = exports.OfficeFromJSONTyped = exports.OfficeFromJSON = exports.instanceOfOffice = exports.OfficeTypeEnum = void 0;
/**
* @export
*/
exports.OfficeTypeEnum = {
Unknown: 'unknown',
CorpsHeadquarters: 'corps headquarters',
DivisionHeadquarters: 'division headquarters',
DivisionRegional: 'division regional',
District: 'district',
FiledOperatingActivity: 'filed operating activity'
};
/**
* Check if a given object implements the Office interface.
*/
function instanceOfOffice(value) {
return true;
}
exports.instanceOfOffice = instanceOfOffice;
function OfficeFromJSON(json) {
return OfficeFromJSONTyped(json, false);
}
exports.OfficeFromJSON = OfficeFromJSON;
function OfficeFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'name': json['name'] == null ? undefined : json['name'],
'longName': json['long-name'] == null ? undefined : json['long-name'],
'type': json['type'] == null ? undefined : json['type'],
'reportsTo': json['reports-to'] == null ? undefined : json['reports-to'],
};
}
exports.OfficeFromJSONTyped = OfficeFromJSONTyped;
function OfficeToJSON(value) {
if (value == null) {
return value;
}
return {
'name': value['name'],
'long-name': value['longName'],
'type': value['type'],
'reports-to': value['reportsTo'],
};
}
exports.OfficeToJSON = OfficeToJSON;