cwmsjs
Version:
CWMS Data API Library for JavaScript/TypeScript created with OpenAPI generator for use with browser webapps
41 lines (40 loc) • 1.12 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 IndependentRoundingSpec interface.
*/
export function instanceOfIndependentRoundingSpec(value) {
return true;
}
export function IndependentRoundingSpecFromJSON(json) {
return IndependentRoundingSpecFromJSONTyped(json, false);
}
export function IndependentRoundingSpecFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'position': json['position'] == null ? undefined : json['position'],
'value': json['value'] == null ? undefined : json['value'],
};
}
export function IndependentRoundingSpecToJSON(value) {
if (value == null) {
return value;
}
return {
'position': value['position'],
'value': value['value'],
};
}