/* 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 TimeZones
 */
export interface TimeZones {
    /**
     * 
     * @type {Array<TimeZone>}
     * @memberof TimeZones
     */
    timeZones?: Array<TimeZone>;
}

/**
 * Check if a given object implements the TimeZones interface.
 */
export function instanceOfTimeZones(value: object): boolean {
    return true;
}

export function TimeZonesFromJSON(json: any): TimeZones {
    return TimeZonesFromJSONTyped(json, false);
}

export function TimeZonesFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimeZones {
    if (json == null) {
        return json;
    }
    return {
        
        'timeZones': json['time-zones'] == null ? undefined : ((json['time-zones'] as Array<any>).map(TimeZoneFromJSON)),
    };
}

export function TimeZonesToJSON(value?: TimeZones | null): any {
    if (value == null) {
        return value;
    }
    return {
        
        'time-zones': value['timeZones'] == null ? undefined : ((value['timeZones'] as Array<any>).map(TimeZoneToJSON)),
    };
}

