cwmsjs
Version:
CWMS Data API Library for JavaScript/TypeScript created with OpenAPI generator for use with browser webapps
93 lines (84 loc) • 2.27 kB
text/typescript
/* 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 { 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;
}
/**
* Check if a given object implements the AssignedLocation interface.
*/
export function instanceOfAssignedLocation(value: object): boolean {
return true;
}
export function AssignedLocationFromJSON(json: any): AssignedLocation {
return AssignedLocationFromJSONTyped(json, false);
}
export function AssignedLocationFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssignedLocation {
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'],
};
}
export function AssignedLocationToJSON(value?: AssignedLocation | null): any {
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'],
};
}