cwmsjs
Version:
CWMS Data API Library for JavaScript/TypeScript created with OpenAPI generator for use with browser webapps
68 lines (58 loc) • 1.51 kB
text/typescript
/* 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.
*/
import { mapValues } from '../runtime';
import type { OfficesFMT } from './OfficesFMT';
import {
OfficesFMTFromJSON,
OfficesFMTFromJSONTyped,
OfficesFMTToJSON,
} from './OfficesFMT';
/**
*
* @export
* @interface OfficeFormatV1
*/
export interface OfficeFormatV1 {
/**
*
* @type {OfficesFMT}
* @memberof OfficeFormatV1
*/
offices?: OfficesFMT;
}
/**
* Check if a given object implements the OfficeFormatV1 interface.
*/
export function instanceOfOfficeFormatV1(value: object): boolean {
return true;
}
export function OfficeFormatV1FromJSON(json: any): OfficeFormatV1 {
return OfficeFormatV1FromJSONTyped(json, false);
}
export function OfficeFormatV1FromJSONTyped(json: any, ignoreDiscriminator: boolean): OfficeFormatV1 {
if (json == null) {
return json;
}
return {
'offices': json['offices'] == null ? undefined : OfficesFMTFromJSON(json['offices']),
};
}
export function OfficeFormatV1ToJSON(value?: OfficeFormatV1 | null): any {
if (value == null) {
return value;
}
return {
'offices': OfficesFMTToJSON(value['offices']),
};
}