/* 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 CatalogResponse
 */
export interface CatalogResponse {
    /**
     * 
     * @type {string}
     * @memberof CatalogResponse
     */
    server?: string;
    /**
     * 
     * @type {string}
     * @memberof CatalogResponse
     */
    version?: string;
    /**
     * 
     * @type {Array<{ [key: string]: any; }>}
     * @memberof CatalogResponse
     */
    tools?: Array<{ [key: string]: any; }>;
    /**
     * 
     * @type {string}
     * @memberof CatalogResponse
     */
    paymentProtocol?: string;
}

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

export function CatalogResponseFromJSON(json: any): CatalogResponse {
    return CatalogResponseFromJSONTyped(json, false);
}

export function CatalogResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CatalogResponse {
    if (json == null) {
        return json;
    }
    return {
        
        'server': json['server'] == null ? undefined : json['server'],
        'version': json['version'] == null ? undefined : json['version'],
        'tools': json['tools'] == null ? undefined : json['tools'],
        'paymentProtocol': json['payment_protocol'] == null ? undefined : json['payment_protocol'],
    };
}

export function CatalogResponseToJSON(json: any): CatalogResponse {
    return CatalogResponseToJSONTyped(json, false);
}

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

    return {
        
        'server': value['server'],
        'version': value['version'],
        'tools': value['tools'],
        'payment_protocol': value['paymentProtocol'],
    };
}

