cwmsjs
Version:
CWMS Data API Library for JavaScript/TypeScript created with OpenAPI generator for use with browser webapps
89 lines (81 loc) • 2.19 kB
text/typescript
/* 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.
*/
import { exists, mapValues } from '../runtime';
/**
*
* @export
* @interface AssignedLocation
*/
export interface AssignedLocation {
/**
*
* @type {string}
* @memberof AssignedLocation
*/
locationId?: string;
/**
*
* @type {string}
* @memberof AssignedLocation
*/
officeId?: string;
/**
*
* @type {string}
* @memberof AssignedLocation
*/
aliasId?: string;
/**
*
* @type {number}
* @memberof AssignedLocation
*/
attribute?: number;
/**
*
* @type {string}
* @memberof AssignedLocation
*/
refLocationId?: string;
}
export function AssignedLocationFromJSON(json: any): AssignedLocation {
return AssignedLocationFromJSONTyped(json, false);
}
export function AssignedLocationFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssignedLocation {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'locationId': !exists(json, 'location-id') ? undefined : json['location-id'],
'officeId': !exists(json, 'office-id') ? undefined : json['office-id'],
'aliasId': !exists(json, 'alias-id') ? undefined : json['alias-id'],
'attribute': !exists(json, 'attribute') ? undefined : json['attribute'],
'refLocationId': !exists(json, 'ref-location-id') ? undefined : json['ref-location-id'],
};
}
export function AssignedLocationToJSON(value?: AssignedLocation | null): any {
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,
};
}