UNPKG

cwmsjs

Version:

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

69 lines (60 loc) 1.63 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. */ import { mapValues } from '../runtime'; /** * * @export * @interface IndependentRoundingSpec */ export interface IndependentRoundingSpec { /** * * @type {number} * @memberof IndependentRoundingSpec */ position?: number; /** * * @type {string} * @memberof IndependentRoundingSpec */ value?: string; } /** * Check if a given object implements the IndependentRoundingSpec interface. */ export function instanceOfIndependentRoundingSpec(value: object): boolean { return true; } export function IndependentRoundingSpecFromJSON(json: any): IndependentRoundingSpec { return IndependentRoundingSpecFromJSONTyped(json, false); } export function IndependentRoundingSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): IndependentRoundingSpec { if (json == null) { return json; } return { 'position': json['position'] == null ? undefined : json['position'], 'value': json['value'] == null ? undefined : json['value'], }; } export function IndependentRoundingSpecToJSON(value?: IndependentRoundingSpec | null): any { if (value == null) { return value; } return { 'position': value['position'], 'value': value['value'], }; }