UNPKG

cwmsjs

Version:

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

55 lines (54 loc) 1.94 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 Parameter interface. */ export function instanceOfParameter(value) { if (!('officeId' in value)) return false; return true; } export function ParameterFromJSON(json) { return ParameterFromJSONTyped(json, false); } export function ParameterFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'officeId': json['office-id'], 'name': json['name'] == null ? undefined : json['name'], 'baseParameter': json['base-parameter'] == null ? undefined : json['base-parameter'], 'subParameter': json['sub-parameter'] == null ? undefined : json['sub-parameter'], 'subParameterDescription': json['sub-parameter-description'] == null ? undefined : json['sub-parameter-description'], 'dbUnitId': json['db-unit-id'] == null ? undefined : json['db-unit-id'], 'unitLongName': json['unit-long-name'] == null ? undefined : json['unit-long-name'], 'unitDescription': json['unit-description'] == null ? undefined : json['unit-description'], }; } export function ParameterToJSON(value) { if (value == null) { return value; } return { 'office-id': value['officeId'], 'name': value['name'], 'base-parameter': value['baseParameter'], 'sub-parameter': value['subParameter'], 'sub-parameter-description': value['subParameterDescription'], 'db-unit-id': value['dbUnitId'], 'unit-long-name': value['unitLongName'], 'unit-description': value['unitDescription'], }; }