/* 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 { TableQueryFromJSON, TableQueryToJSON, } from './TableQuery';
/**
 * @export
 */
export const QueryBundleRequestConcreteTypeEnum = {
    org_sagebionetworks_repo_model_table_QueryBundleRequest: 'org.sagebionetworks.repo.model.table.QueryBundleRequest'
};
/**
 * Check if a given object implements the QueryBundleRequest interface.
 */
export function instanceOfQueryBundleRequest(value) {
    if (!('concreteType' in value) || value['concreteType'] === undefined)
        return false;
    if (!Object.values(QueryBundleRequestConcreteTypeEnum).includes(value["concreteType"])) {
        return false;
    }
    return true;
}
export function QueryBundleRequestFromJSON(json) {
    return QueryBundleRequestFromJSONTyped(json, false);
}
export function QueryBundleRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'concreteType': json['concreteType'],
        'entityId': json['entityId'] == null ? undefined : json['entityId'],
        'query': json['query'] == null ? undefined : TableQueryFromJSON(json['query']),
        'partMask': json['partMask'] == null ? undefined : json['partMask'],
    };
}
export function QueryBundleRequestToJSON(json) {
    return QueryBundleRequestToJSONTyped(json, false);
}
export function QueryBundleRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'concreteType': value['concreteType'],
        'entityId': value['entityId'],
        'query': TableQueryToJSON(value['query']),
        'partMask': value['partMask'],
    };
}
//# sourceMappingURL=QueryBundleRequest.js.map