/* 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 ResolveEntityRequest
 */
export interface ResolveEntityRequest {
    /**
     * 
     * @type {string}
     * @memberof ResolveEntityRequest
     */
    walletId: string;
    /**
     * 
     * @type {number}
     * @memberof ResolveEntityRequest
     */
    maxChains?: number;
}

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

export function ResolveEntityRequestFromJSON(json: any): ResolveEntityRequest {
    return ResolveEntityRequestFromJSONTyped(json, false);
}

export function ResolveEntityRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResolveEntityRequest {
    if (json == null) {
        return json;
    }
    return {
        
        'walletId': json['wallet_id'],
        'maxChains': json['max_chains'] == null ? undefined : json['max_chains'],
    };
}

export function ResolveEntityRequestToJSON(json: any): ResolveEntityRequest {
    return ResolveEntityRequestToJSONTyped(json, false);
}

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

    return {
        
        'wallet_id': value['walletId'],
        'max_chains': value['maxChains'],
    };
}

