/* 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';
/**
 * Request body for the token scan endpoint.
 * @export
 * @interface TokenScanRequest
 */
export interface TokenScanRequest {
    /**
     * 
     * @type {string}
     * @memberof TokenScanRequest
     */
    address: string;
    /**
     * 
     * @type {string}
     * @memberof TokenScanRequest
     */
    chain?: string;
    /**
     * 
     * @type {string}
     * @memberof TokenScanRequest
     */
    tier?: string;
}

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

export function TokenScanRequestFromJSON(json: any): TokenScanRequest {
    return TokenScanRequestFromJSONTyped(json, false);
}

export function TokenScanRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): TokenScanRequest {
    if (json == null) {
        return json;
    }
    return {
        
        'address': json['address'],
        'chain': json['chain'] == null ? undefined : json['chain'],
        'tier': json['tier'] == null ? undefined : json['tier'],
    };
}

export function TokenScanRequestToJSON(json: any): TokenScanRequest {
    return TokenScanRequestToJSONTyped(json, false);
}

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

    return {
        
        'address': value['address'],
        'chain': value['chain'],
        'tier': value['tier'],
    };
}

