/* tslint:disable */
/* eslint-disable */
/**
 * RMI Backend
 * Rug Munch Intelligence — institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
 *
 * The version of the OpenAPI document: 2026.06.21
 * 
 *
 * 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';
/**
 * A single scanner module's outcome.
 * @export
 * @interface ScanModuleResult
 */
export interface ScanModuleResult {
    /**
     * 
     * @type {string}
     * @memberof ScanModuleResult
     */
    module: string;
    /**
     * 
     * @type {string}
     * @memberof ScanModuleResult
     */
    status: string;
    /**
     * 
     * @type {string}
     * @memberof ScanModuleResult
     */
    error?: string | null;
    /**
     * 
     * @type {{ [key: string]: any; }}
     * @memberof ScanModuleResult
     */
    data?: { [key: string]: any; };
}

/**
 * Check if a given object implements the ScanModuleResult interface.
 */
export function instanceOfScanModuleResult(value: object): value is ScanModuleResult {
    if (!('module' in value) || value['module'] === undefined) return false;
    if (!('status' in value) || value['status'] === undefined) return false;
    return true;
}

export function ScanModuleResultFromJSON(json: any): ScanModuleResult {
    return ScanModuleResultFromJSONTyped(json, false);
}

export function ScanModuleResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScanModuleResult {
    if (json == null) {
        return json;
    }
    return {
        
        'module': json['module'],
        'status': json['status'],
        'error': json['error'] == null ? undefined : json['error'],
        'data': json['data'] == null ? undefined : json['data'],
    };
}

export function ScanModuleResultToJSON(json: any): ScanModuleResult {
    return ScanModuleResultToJSONTyped(json, false);
}

export function ScanModuleResultToJSONTyped(value?: ScanModuleResult | null, ignoreDiscriminator: boolean = false): any {
    if (value == null) {
        return value;
    }

    return {
        
        'module': value['module'],
        'status': value['status'],
        'error': value['error'],
        'data': value['data'],
    };
}

