cwmsjs
Version:
CWMS Data API Library for JavaScript/TypeScript created with OpenAPI generator for use with browser webapps
48 lines (47 loc) • 1.66 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.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.IndependentRoundingSpecToJSON = exports.IndependentRoundingSpecFromJSONTyped = exports.IndependentRoundingSpecFromJSON = exports.instanceOfIndependentRoundingSpec = void 0;
/**
* Check if a given object implements the IndependentRoundingSpec interface.
*/
function instanceOfIndependentRoundingSpec(value) {
return true;
}
exports.instanceOfIndependentRoundingSpec = instanceOfIndependentRoundingSpec;
function IndependentRoundingSpecFromJSON(json) {
return IndependentRoundingSpecFromJSONTyped(json, false);
}
exports.IndependentRoundingSpecFromJSON = IndependentRoundingSpecFromJSON;
function IndependentRoundingSpecFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'position': json['position'] == null ? undefined : json['position'],
'value': json['value'] == null ? undefined : json['value'],
};
}
exports.IndependentRoundingSpecFromJSONTyped = IndependentRoundingSpecFromJSONTyped;
function IndependentRoundingSpecToJSON(value) {
if (value == null) {
return value;
}
return {
'position': value['position'],
'value': value['value'],
};
}
exports.IndependentRoundingSpecToJSON = IndependentRoundingSpecToJSON;