/* tslint:disable */
/* eslint-disable */
/**
 * Synapse REST API
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: v1
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
import { DocumentFromJSON, DocumentToJSON, } from './Document';
/**
 * Check if a given object implements the DocumentBatch interface.
 */
export function instanceOfDocumentBatch(value) {
    return true;
}
export function DocumentBatchFromJSON(json) {
    return DocumentBatchFromJSONTyped(json, false);
}
export function DocumentBatchFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'documents': json['documents'] == null ? undefined : (json['documents'].map(DocumentFromJSON)),
    };
}
export function DocumentBatchToJSON(json) {
    return DocumentBatchToJSONTyped(json, false);
}
export function DocumentBatchToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'documents': value['documents'] == null ? undefined : (value['documents'].map(DocumentToJSON)),
    };
}
//# sourceMappingURL=DocumentBatch.js.map