UNPKG

cwmsjs

Version:

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

72 lines (63 loc) 1.69 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'; import { CwmsId, CwmsIdFromJSON, CwmsIdFromJSONTyped, CwmsIdToJSON, } from './CwmsId'; /** * * @export * @interface CwmsIdLocationKind */ export interface CwmsIdLocationKind { /** * * @type {string} * @memberof CwmsIdLocationKind */ locationKindId?: string; /** * * @type {CwmsId} * @memberof CwmsIdLocationKind */ locationId?: CwmsId; } export function CwmsIdLocationKindFromJSON(json: any): CwmsIdLocationKind { return CwmsIdLocationKindFromJSONTyped(json, false); } export function CwmsIdLocationKindFromJSONTyped(json: any, ignoreDiscriminator: boolean): CwmsIdLocationKind { if ((json === undefined) || (json === null)) { return json; } return { 'locationKindId': !exists(json, 'location-kind-id') ? undefined : json['location-kind-id'], 'locationId': !exists(json, 'location-id') ? undefined : CwmsIdFromJSON(json['location-id']), }; } export function CwmsIdLocationKindToJSON(value?: CwmsIdLocationKind | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'location-kind-id': value.locationKindId, 'location-id': CwmsIdToJSON(value.locationId), }; }