UNPKG

cwmsjs

Version:

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

47 lines (46 loc) 1.45 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.OfficesFMTToJSON = exports.OfficesFMTFromJSONTyped = exports.OfficesFMTFromJSON = exports.instanceOfOfficesFMT = void 0; const Office_1 = require("./Office"); /** * Check if a given object implements the OfficesFMT interface. */ function instanceOfOfficesFMT(value) { return true; } exports.instanceOfOfficesFMT = instanceOfOfficesFMT; function OfficesFMTFromJSON(json) { return OfficesFMTFromJSONTyped(json, false); } exports.OfficesFMTFromJSON = OfficesFMTFromJSON; function OfficesFMTFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'offices': json['offices'] == null ? undefined : (json['offices'].map(Office_1.OfficeFromJSON)), }; } exports.OfficesFMTFromJSONTyped = OfficesFMTFromJSONTyped; function OfficesFMTToJSON(value) { if (value == null) { return value; } return { 'offices': value['offices'] == null ? undefined : (value['offices'].map(Office_1.OfficeToJSON)), }; } exports.OfficesFMTToJSON = OfficesFMTToJSON;