/* 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';
/**
 * Standard paginated list response.
 * @export
 * @interface PaginatedResponse
 */
export interface PaginatedResponse {
    /**
     * 
     * @type {Array<any>}
     * @memberof PaginatedResponse
     */
    items?: Array<any>;
    /**
     * 
     * @type {number}
     * @memberof PaginatedResponse
     */
    total?: number;
    /**
     * 
     * @type {number}
     * @memberof PaginatedResponse
     */
    page?: number;
    /**
     * 
     * @type {number}
     * @memberof PaginatedResponse
     */
    limit?: number;
    /**
     * 
     * @type {boolean}
     * @memberof PaginatedResponse
     */
    hasMore?: boolean;
}

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

export function PaginatedResponseFromJSON(json: any): PaginatedResponse {
    return PaginatedResponseFromJSONTyped(json, false);
}

export function PaginatedResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedResponse {
    if (json == null) {
        return json;
    }
    return {
        
        'items': json['items'] == null ? undefined : json['items'],
        'total': json['total'] == null ? undefined : json['total'],
        'page': json['page'] == null ? undefined : json['page'],
        'limit': json['limit'] == null ? undefined : json['limit'],
        'hasMore': json['has_more'] == null ? undefined : json['has_more'],
    };
}

export function PaginatedResponseToJSON(json: any): PaginatedResponse {
    return PaginatedResponseToJSONTyped(json, false);
}

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

    return {
        
        'items': value['items'],
        'total': value['total'],
        'page': value['page'],
        'limit': value['limit'],
        'has_more': value['hasMore'],
    };
}

