UNPKG

cwmsjs

Version:

CWMS Data API Library for JavaScript/TypeScript created with OpenAPI generator for use with browser webapps

64 lines (63 loc) 2.64 kB
"use strict"; /* 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.UsgsMeasurementToJSON = exports.UsgsMeasurementFromJSONTyped = exports.UsgsMeasurementFromJSON = exports.instanceOfUsgsMeasurement = void 0; /** * Check if a given object implements the UsgsMeasurement interface. */ function instanceOfUsgsMeasurement(value) { return true; } exports.instanceOfUsgsMeasurement = instanceOfUsgsMeasurement; function UsgsMeasurementFromJSON(json) { return UsgsMeasurementFromJSONTyped(json, false); } exports.UsgsMeasurementFromJSON = UsgsMeasurementFromJSON; function UsgsMeasurementFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'remarks': json['remarks'] == null ? undefined : json['remarks'], 'currentRating': json['current-rating'] == null ? undefined : json['current-rating'], 'controlCondition': json['control-condition'] == null ? undefined : json['control-condition'], 'shiftUsed': json['shift-used'] == null ? undefined : json['shift-used'], 'percentDifference': json['percent-difference'] == null ? undefined : json['percent-difference'], 'flowAdjustment': json['flow-adjustment'] == null ? undefined : json['flow-adjustment'], 'deltaHeight': json['delta-height'] == null ? undefined : json['delta-height'], 'deltaTime': json['delta-time'] == null ? undefined : json['delta-time'], 'airTemp': json['air-temp'] == null ? undefined : json['air-temp'], 'waterTemp': json['water-temp'] == null ? undefined : json['water-temp'], }; } exports.UsgsMeasurementFromJSONTyped = UsgsMeasurementFromJSONTyped; function UsgsMeasurementToJSON(value) { if (value == null) { return value; } return { 'remarks': value['remarks'], 'current-rating': value['currentRating'], 'control-condition': value['controlCondition'], 'shift-used': value['shiftUsed'], 'percent-difference': value['percentDifference'], 'flow-adjustment': value['flowAdjustment'], 'delta-height': value['deltaHeight'], 'delta-time': value['deltaTime'], 'air-temp': value['airTemp'], 'water-temp': value['waterTemp'], }; } exports.UsgsMeasurementToJSON = UsgsMeasurementToJSON;