/* 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 ForecastSpec
 */
export interface ForecastSpec {
    /**
     * Owning office of object.
     * @type {string}
     * @memberof ForecastSpec
     */
    officeId: string;
    /**
     * Forecast Spec ID
     * @type {string}
     * @memberof ForecastSpec
     */
    specId?: string;
    /**
     * Forecast Designator
     * @type {string}
     * @memberof ForecastSpec
     */
    designator?: string;
    /**
     * Location IDs
     * @type {string}
     * @memberof ForecastSpec
     */
    locationId?: string;
    /**
     * Source Entity ID
     * @type {string}
     * @memberof ForecastSpec
     */
    sourceEntityId?: string;
    /**
     * Description of Forecast
     * @type {string}
     * @memberof ForecastSpec
     */
    description?: string;
    /**
     * List of Time Series IDs belonging to this Forecast Spec
     * @type {Array<string>}
     * @memberof ForecastSpec
     */
    timeSeriesIds?: Array<string>;
}

export function ForecastSpecFromJSON(json: any): ForecastSpec {
    return ForecastSpecFromJSONTyped(json, false);
}

export function ForecastSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): ForecastSpec {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        
        'officeId': json['office-id'],
        'specId': !exists(json, 'spec-id') ? undefined : json['spec-id'],
        'designator': !exists(json, 'designator') ? undefined : json['designator'],
        'locationId': !exists(json, 'location-id') ? undefined : json['location-id'],
        'sourceEntityId': !exists(json, 'source-entity-id') ? undefined : json['source-entity-id'],
        'description': !exists(json, 'description') ? undefined : json['description'],
        'timeSeriesIds': !exists(json, 'time-series-ids') ? undefined : json['time-series-ids'],
    };
}

export function ForecastSpecToJSON(value?: ForecastSpec | null): any {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        
        'office-id': value.officeId,
        'spec-id': value.specId,
        'designator': value.designator,
        'location-id': value.locationId,
        'source-entity-id': value.sourceEntityId,
        'description': value.description,
        'time-series-ids': value.timeSeriesIds,
    };
}

