cwmsjs
Version:
CWMS Data API Library for JavaScript/TypeScript created with OpenAPI generator for use with browser webapps
49 lines (48 loc) • 1.57 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.
*/
/**
* Check if a given object implements the AssignedTimeSeries interface.
*/
export function instanceOfAssignedTimeSeries(value) {
return true;
}
export function AssignedTimeSeriesFromJSON(json) {
return AssignedTimeSeriesFromJSONTyped(json, false);
}
export function AssignedTimeSeriesFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'officeId': json['officeId'] == null ? undefined : json['officeId'],
'timeseriesId': json['timeseriesId'] == null ? undefined : json['timeseriesId'],
'tsCode': json['tsCode'] == null ? undefined : json['tsCode'],
'aliasId': json['aliasId'] == null ? undefined : json['aliasId'],
'refTsId': json['refTsId'] == null ? undefined : json['refTsId'],
'attribute': json['attribute'] == null ? undefined : json['attribute'],
};
}
export function AssignedTimeSeriesToJSON(value) {
if (value == null) {
return value;
}
return {
'officeId': value['officeId'],
'timeseriesId': value['timeseriesId'],
'tsCode': value['tsCode'],
'aliasId': value['aliasId'],
'refTsId': value['refTsId'],
'attribute': value['attribute'],
};
}