/* tslint:disable */
/* eslint-disable */
/**
 * AskNews API
 * AskNews API
 *
 * The version of the OpenAPI document: 0.18.6
 * Contact: contact@emergentmethods.ai
 *
 * 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 { FilterParams } from './FilterParams';
import {
    FilterParamsFromJSON,
    FilterParamsFromJSONTyped,
    FilterParamsToJSON,
} from './FilterParams';

/**
 * 
 * @export
 * @interface AskNewsSource
 */
export interface AskNewsSource {
    /**
     * 
     * @type {string}
     * @memberof AskNewsSource
     */
    identifier: AskNewsSourceIdentifierEnum;
    /**
     * 
     * @type {FilterParams}
     * @memberof AskNewsSource
     */
    params?: FilterParams;
}


/**
 * @export
 */
export const AskNewsSourceIdentifierEnum = {
    Asknews: 'asknews'
} as const;
export type AskNewsSourceIdentifierEnum = typeof AskNewsSourceIdentifierEnum[keyof typeof AskNewsSourceIdentifierEnum];


/**
 * Check if a given object implements the AskNewsSource interface.
 */
export function instanceOfAskNewsSource(value: object): boolean {
    if (!('identifier' in value)) return false;
    return true;
}

export function AskNewsSourceFromJSON(json: any): AskNewsSource {
    return AskNewsSourceFromJSONTyped(json, false);
}

export function AskNewsSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): AskNewsSource {
    if (json == null) {
        return json;
    }
    return {
        
        'identifier': json['identifier'],
        'params': json['params'] == null ? undefined : FilterParamsFromJSON(json['params']),
    };
}

export function AskNewsSourceToJSON(value?: AskNewsSource | null): any {
    if (value == null) {
        return value;
    }
    return {
        
        'identifier': value['identifier'],
        'params': FilterParamsToJSON(value['params']),
    };
}

