/* 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';
/**
 * 
 * @export
 * @interface FindRiskyTokensRequest
 */
export interface FindRiskyTokensRequest {
    /**
     * 
     * @type {number}
     * @memberof FindRiskyTokensRequest
     */
    minRugCount?: number;
    /**
     * 
     * @type {string}
     * @memberof FindRiskyTokensRequest
     */
    chain?: string | null;
    /**
     * 
     * @type {number}
     * @memberof FindRiskyTokensRequest
     */
    limit?: number;
}

/**
 * Check if a given object implements the FindRiskyTokensRequest interface.
 */
export function instanceOfFindRiskyTokensRequest(value: object): value is FindRiskyTokensRequest {
    return true;
}

export function FindRiskyTokensRequestFromJSON(json: any): FindRiskyTokensRequest {
    return FindRiskyTokensRequestFromJSONTyped(json, false);
}

export function FindRiskyTokensRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): FindRiskyTokensRequest {
    if (json == null) {
        return json;
    }
    return {
        
        'minRugCount': json['min_rug_count'] == null ? undefined : json['min_rug_count'],
        'chain': json['chain'] == null ? undefined : json['chain'],
        'limit': json['limit'] == null ? undefined : json['limit'],
    };
}

export function FindRiskyTokensRequestToJSON(json: any): FindRiskyTokensRequest {
    return FindRiskyTokensRequestToJSONTyped(json, false);
}

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

    return {
        
        'min_rug_count': value['minRugCount'],
        'chain': value['chain'],
        'limit': value['limit'],
    };
}

