UNPKG

cwmsjs

Version:

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

45 lines (44 loc) 1.45 kB
/* 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 ParameterSpec interface. */ export function instanceOfParameterSpec(value) { return true; } export function ParameterSpecFromJSON(json) { return ParameterSpecFromJSONTyped(json, false); } export function ParameterSpecFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'parameter': json['parameter'] == null ? undefined : json['parameter'], 'inRangeMethod': json['in-range-method'] == null ? undefined : json['in-range-method'], 'outRangeLowMethod': json['out-range-low-method'] == null ? undefined : json['out-range-low-method'], 'outRangeHighMethod': json['out-range-high-method'] == null ? undefined : json['out-range-high-method'], }; } export function ParameterSpecToJSON(value) { if (value == null) { return value; } return { 'parameter': value['parameter'], 'in-range-method': value['inRangeMethod'], 'out-range-low-method': value['outRangeLowMethod'], 'out-range-high-method': value['outRangeHighMethod'], }; }