UNPKG

cwmsjs

Version:

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

64 lines (55 loc) 1.43 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 { Office, OfficeFromJSON, OfficeFromJSONTyped, OfficeToJSON, } from './Office'; /** * * @export * @interface OfficesFMT */ export interface OfficesFMT { /** * * @type {Array<Office>} * @memberof OfficesFMT */ offices?: Array<Office>; } export function OfficesFMTFromJSON(json: any): OfficesFMT { return OfficesFMTFromJSONTyped(json, false); } export function OfficesFMTFromJSONTyped(json: any, ignoreDiscriminator: boolean): OfficesFMT { if ((json === undefined) || (json === null)) { return json; } return { 'offices': !exists(json, 'offices') ? undefined : ((json['offices'] as Array<any>).map(OfficeFromJSON)), }; } export function OfficesFMTToJSON(value?: OfficesFMT | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'offices': value.offices === undefined ? undefined : ((value.offices as Array<any>).map(OfficeToJSON)), }; }