UNPKG

cwmsjs

Version:

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

47 lines (46 loc) 1.68 kB
"use strict"; /* 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. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.StandardTextCatalogToJSON = exports.StandardTextCatalogFromJSONTyped = exports.StandardTextCatalogFromJSON = exports.instanceOfStandardTextCatalog = void 0; const StandardTextValue_1 = require("./StandardTextValue"); /** * Check if a given object implements the StandardTextCatalog interface. */ function instanceOfStandardTextCatalog(value) { return true; } exports.instanceOfStandardTextCatalog = instanceOfStandardTextCatalog; function StandardTextCatalogFromJSON(json) { return StandardTextCatalogFromJSONTyped(json, false); } exports.StandardTextCatalogFromJSON = StandardTextCatalogFromJSON; function StandardTextCatalogFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'values': json['values'] == null ? undefined : (json['values'].map(StandardTextValue_1.StandardTextValueFromJSON)), }; } exports.StandardTextCatalogFromJSONTyped = StandardTextCatalogFromJSONTyped; function StandardTextCatalogToJSON(value) { if (value == null) { return value; } return { 'values': value['values'] == null ? undefined : (value['values'].map(StandardTextValue_1.StandardTextValueToJSON)), }; } exports.StandardTextCatalogToJSON = StandardTextCatalogToJSON;