UNPKG

cwmsjs

Version:

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

64 lines (55 loc) 1.61 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 { StandardTextValue, StandardTextValueFromJSON, StandardTextValueFromJSONTyped, StandardTextValueToJSON, } from './StandardTextValue'; /** * * @export * @interface StandardTextCatalog */ export interface StandardTextCatalog { /** * * @type {Array<StandardTextValue>} * @memberof StandardTextCatalog */ values?: Array<StandardTextValue>; } export function StandardTextCatalogFromJSON(json: any): StandardTextCatalog { return StandardTextCatalogFromJSONTyped(json, false); } export function StandardTextCatalogFromJSONTyped(json: any, ignoreDiscriminator: boolean): StandardTextCatalog { if ((json === undefined) || (json === null)) { return json; } return { 'values': !exists(json, 'values') ? undefined : ((json['values'] as Array<any>).map(StandardTextValueFromJSON)), }; } export function StandardTextCatalogToJSON(value?: StandardTextCatalog | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'values': value.values === undefined ? undefined : ((value.values as Array<any>).map(StandardTextValueToJSON)), }; }