/* tslint:disable */
/* eslint-disable */
/**
 * AskNews API
 * AskNews API
 *
 * The version of the OpenAPI document: 0.16.2
 * 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 { ReportParams } from './ReportParams';
import {
    ReportParamsFromJSON,
    ReportParamsFromJSONTyped,
    ReportParamsToJSON,
} from './ReportParams';

/**
 * 
 * @export
 * @interface ReportAction
 */
export interface ReportAction {
    /**
     * 
     * @type {string}
     * @memberof ReportAction
     */
    action?: ReportActionActionEnum;
    /**
     * 
     * @type {ReportParams}
     * @memberof ReportAction
     */
    params: ReportParams;
}


/**
 * @export
 */
export const ReportActionActionEnum = {
    Report: 'report'
} as const;
export type ReportActionActionEnum = typeof ReportActionActionEnum[keyof typeof ReportActionActionEnum];


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

export function ReportActionFromJSON(json: any): ReportAction {
    return ReportActionFromJSONTyped(json, false);
}

export function ReportActionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReportAction {
    if (json == null) {
        return json;
    }
    return {
        
        'action': json['action'] == null ? undefined : json['action'],
        'params': ReportParamsFromJSON(json['params']),
    };
}

export function ReportActionToJSON(value?: ReportAction | null): any {
    if (value == null) {
        return value;
    }
    return {
        
        'action': value['action'],
        'params': ReportParamsToJSON(value['params']),
    };
}

