/* 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 BulkIngestRequest
 */
export interface BulkIngestRequest {
    /**
     * 
     * @type {string}
     * @memberof BulkIngestRequest
     */
    collection?: string;
    /**
     * 
     * @type {Array<{ [key: string]: any; }>}
     * @memberof BulkIngestRequest
     */
    items?: Array<{ [key: string]: any; }>;
}

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

export function BulkIngestRequestFromJSON(json: any): BulkIngestRequest {
    return BulkIngestRequestFromJSONTyped(json, false);
}

export function BulkIngestRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): BulkIngestRequest {
    if (json == null) {
        return json;
    }
    return {
        
        'collection': json['collection'] == null ? undefined : json['collection'],
        'items': json['items'] == null ? undefined : json['items'],
    };
}

export function BulkIngestRequestToJSON(json: any): BulkIngestRequest {
    return BulkIngestRequestToJSONTyped(json, false);
}

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

    return {
        
        'collection': value['collection'],
        'items': value['items'],
    };
}

