/* 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';
/**
 * 
 * @export
 * @interface RatingSpecEffectiveDates
 */
export interface RatingSpecEffectiveDates {
    /**
     * 
     * @type {string}
     * @memberof RatingSpecEffectiveDates
     */
    ratingSpecId: string;
    /**
     * 
     * @type {Array<Date>}
     * @memberof RatingSpecEffectiveDates
     */
    effectiveDates?: Array<Date>;
}

export function RatingSpecEffectiveDatesFromJSON(json: any): RatingSpecEffectiveDates {
    return RatingSpecEffectiveDatesFromJSONTyped(json, false);
}

export function RatingSpecEffectiveDatesFromJSONTyped(json: any, ignoreDiscriminator: boolean): RatingSpecEffectiveDates {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        
        'ratingSpecId': json['rating-spec-id'],
        'effectiveDates': !exists(json, 'effective-dates') ? undefined : json['effective-dates'],
    };
}

export function RatingSpecEffectiveDatesToJSON(value?: RatingSpecEffectiveDates | null): any {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        
        'rating-spec-id': value.ratingSpecId,
        'effective-dates': value.effectiveDates,
    };
}

