/* 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 {
    RssChannel,
    RssChannelFromJSON,
    RssChannelFromJSONTyped,
    RssChannelToJSON,
} from './RssChannel';

/**
 * 
 * @export
 * @interface RssFeed
 */
export interface RssFeed {
    /**
     * 
     * @type {string}
     * @memberof RssFeed
     */
    version?: string;
    /**
     * 
     * @type {RssChannel}
     * @memberof RssFeed
     */
    channel?: RssChannel;
}

export function RssFeedFromJSON(json: any): RssFeed {
    return RssFeedFromJSONTyped(json, false);
}

export function RssFeedFromJSONTyped(json: any, ignoreDiscriminator: boolean): RssFeed {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        
        'version': !exists(json, 'version') ? undefined : json['version'],
        'channel': !exists(json, 'channel') ? undefined : RssChannelFromJSON(json['channel']),
    };
}

export function RssFeedToJSON(value?: RssFeed | null): any {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        
        'version': value.version,
        'channel': RssChannelToJSON(value.channel),
    };
}

