/* 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 {
    CwmsId,
    CwmsIdFromJSON,
    CwmsIdFromJSONTyped,
    CwmsIdToJSON,
} from './CwmsId';

/**
 * 
 * @export
 * @interface RatedOutputValues
 */
export interface RatedOutputValues {
    /**
     * 
     * @type {CwmsId}
     * @memberof RatedOutputValues
     */
    ratingId: CwmsId;
    /**
     * The unit of the rated output data
     * @type {string}
     * @memberof RatedOutputValues
     */
    unit: string;
    /**
     * 
     * @type {Array<number>}
     * @memberof RatedOutputValues
     */
    values: Array<number>;
}

export function RatedOutputValuesFromJSON(json: any): RatedOutputValues {
    return RatedOutputValuesFromJSONTyped(json, false);
}

export function RatedOutputValuesFromJSONTyped(json: any, ignoreDiscriminator: boolean): RatedOutputValues {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        
        'ratingId': CwmsIdFromJSON(json['rating-id']),
        'unit': json['unit'],
        'values': json['values'],
    };
}

export function RatedOutputValuesToJSON(value?: RatedOutputValues | null): any {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        
        'rating-id': CwmsIdToJSON(value.ratingId),
        'unit': value.unit,
        'values': value.values,
    };
}

