UNPKG

cwmsjs

Version:

CWMS Data API Library for JavaScript/TypeScript created with OpenAPI generator for use with browser webapps

50 lines (49 loc) 1.75 kB
"use strict"; /* tslint:disable */ /* eslint-disable */ /** * CWMS Data API * CWMS REST API for Data Retrieval * * The version of the OpenAPI document: 2.4.0-2026.3.16 * * * 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 }); const runtime_1 = require("../runtime"); function AssignedLocationFromJSON(json) { return AssignedLocationFromJSONTyped(json, false); } exports.AssignedLocationFromJSON = AssignedLocationFromJSON; function AssignedLocationFromJSONTyped(json, ignoreDiscriminator) { if ((json === undefined) || (json === null)) { return json; } return { 'locationId': !runtime_1.exists(json, 'location-id') ? undefined : json['location-id'], 'officeId': !runtime_1.exists(json, 'office-id') ? undefined : json['office-id'], 'aliasId': !runtime_1.exists(json, 'alias-id') ? undefined : json['alias-id'], 'attribute': !runtime_1.exists(json, 'attribute') ? undefined : json['attribute'], 'refLocationId': !runtime_1.exists(json, 'ref-location-id') ? undefined : json['ref-location-id'], }; } exports.AssignedLocationFromJSONTyped = AssignedLocationFromJSONTyped; function AssignedLocationToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'location-id': value.locationId, 'office-id': value.officeId, 'alias-id': value.aliasId, 'attribute': value.attribute, 'ref-location-id': value.refLocationId, }; } exports.AssignedLocationToJSON = AssignedLocationToJSON;