/* 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 { FacetColumnRequestFromJSON, FacetColumnRequestToJSON, } from './FacetColumnRequest';
import { QueryFilterFromJSON, QueryFilterToJSON, } from './QueryFilter';
import { SortItemFromJSON, SortItemToJSON, } from './SortItem';
/**
 * @export
 */
export const DownloadPFBRequestConcreteTypeEnum = {
    org_sagebionetworks_repo_model_table_DownloadPFBRequest: 'org.sagebionetworks.repo.model.table.DownloadPFBRequest'
};
/**
 * Check if a given object implements the DownloadPFBRequest interface.
 */
export function instanceOfDownloadPFBRequest(value) {
    if (!('concreteType' in value) || value['concreteType'] === undefined)
        return false;
    if (!Object.values(DownloadPFBRequestConcreteTypeEnum).includes(value["concreteType"])) {
        return false;
    }
    return true;
}
export function DownloadPFBRequestFromJSON(json) {
    return DownloadPFBRequestFromJSONTyped(json, false);
}
export function DownloadPFBRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'concreteType': json['concreteType'],
        'entityId': json['entityId'] == null ? undefined : json['entityId'],
        'pfbEntityName': json['pfbEntityName'] == null ? undefined : json['pfbEntityName'],
        'fileName': json['fileName'] == null ? undefined : json['fileName'],
        'pfbEntityIdColumnNames': json['pfbEntityIdColumnNames'] == null ? undefined : json['pfbEntityIdColumnNames'],
        'sql': json['sql'] == null ? undefined : json['sql'],
        'additionalFilters': json['additionalFilters'] == null ? undefined : (json['additionalFilters'].map(QueryFilterFromJSON)),
        'selectedFacets': json['selectedFacets'] == null ? undefined : (json['selectedFacets'].map(FacetColumnRequestFromJSON)),
        'includeEntityEtag': json['includeEntityEtag'] == null ? undefined : json['includeEntityEtag'],
        'selectFileColumn': json['selectFileColumn'] == null ? undefined : json['selectFileColumn'],
        'selectFileVersionColumn': json['selectFileVersionColumn'] == null ? undefined : json['selectFileVersionColumn'],
        'offset': json['offset'] == null ? undefined : json['offset'],
        'limit': json['limit'] == null ? undefined : json['limit'],
        'sort': json['sort'] == null ? undefined : (json['sort'].map(SortItemFromJSON)),
    };
}
export function DownloadPFBRequestToJSON(json) {
    return DownloadPFBRequestToJSONTyped(json, false);
}
export function DownloadPFBRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'concreteType': value['concreteType'],
        'entityId': value['entityId'],
        'pfbEntityName': value['pfbEntityName'],
        'fileName': value['fileName'],
        'pfbEntityIdColumnNames': value['pfbEntityIdColumnNames'],
        'sql': value['sql'],
        'additionalFilters': value['additionalFilters'] == null ? undefined : (value['additionalFilters'].map(QueryFilterToJSON)),
        'selectedFacets': value['selectedFacets'] == null ? undefined : (value['selectedFacets'].map(FacetColumnRequestToJSON)),
        'includeEntityEtag': value['includeEntityEtag'],
        'selectFileColumn': value['selectFileColumn'],
        'selectFileVersionColumn': value['selectFileVersionColumn'],
        'offset': value['offset'],
        'limit': value['limit'],
        'sort': value['sort'] == null ? undefined : (value['sort'].map(SortItemToJSON)),
    };
}
//# sourceMappingURL=DownloadPFBRequest.js.map