UNPKG

cwmsjs

Version:

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

73 lines (65 loc) 1.95 kB
/* tslint:disable */ /* eslint-disable */ /** * CWMS Data API * CWMS REST API for Data Retrieval * * The version of the OpenAPI document: 2.4.0-2026.3.16 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { exists, mapValues } from '../runtime'; /** * * @export * @interface LocationLevelConstituentAllOf */ export interface LocationLevelConstituentAllOf { /** * * @type {string} * @memberof LocationLevelConstituentAllOf */ attributeId?: string; /** * * @type {number} * @memberof LocationLevelConstituentAllOf */ attributeValue?: number; /** * * @type {string} * @memberof LocationLevelConstituentAllOf */ attributeUnits?: string; } export function LocationLevelConstituentAllOfFromJSON(json: any): LocationLevelConstituentAllOf { return LocationLevelConstituentAllOfFromJSONTyped(json, false); } export function LocationLevelConstituentAllOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): LocationLevelConstituentAllOf { if ((json === undefined) || (json === null)) { return json; } return { 'attributeId': !exists(json, 'attribute-id') ? undefined : json['attribute-id'], 'attributeValue': !exists(json, 'attribute-value') ? undefined : json['attribute-value'], 'attributeUnits': !exists(json, 'attribute-units') ? undefined : json['attribute-units'], }; } export function LocationLevelConstituentAllOfToJSON(value?: LocationLevelConstituentAllOf | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'attribute-id': value.attributeId, 'attribute-value': value.attributeValue, 'attribute-units': value.attributeUnits, }; }