cwmsjs
Version:
CWMS Data API Library for JavaScript/TypeScript created with OpenAPI generator for use with browser webapps
68 lines (58 loc) • 1.57 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 { TimeZone } from './TimeZone';
import {
TimeZoneFromJSON,
TimeZoneFromJSONTyped,
TimeZoneToJSON,
} from './TimeZone';
/**
*
* @export
* @interface TimeZoneIds
*/
export interface TimeZoneIds {
/**
*
* @type {Array<TimeZone>}
* @memberof TimeZoneIds
*/
timeZones?: Array<TimeZone>;
}
/**
* Check if a given object implements the TimeZoneIds interface.
*/
export function instanceOfTimeZoneIds(value: object): boolean {
return true;
}
export function TimeZoneIdsFromJSON(json: any): TimeZoneIds {
return TimeZoneIdsFromJSONTyped(json, false);
}
export function TimeZoneIdsFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimeZoneIds {
if (json == null) {
return json;
}
return {
'timeZones': json['time-zones'] == null ? undefined : ((json['time-zones'] as Array<any>).map(TimeZoneFromJSON)),
};
}
export function TimeZoneIdsToJSON(value?: TimeZoneIds | null): any {
if (value == null) {
return value;
}
return {
'time-zones': value['timeZones'] == null ? undefined : ((value['timeZones'] as Array<any>).map(TimeZoneToJSON)),
};
}