/* 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 { DownloadSortFromJSON, DownloadSortToJSON, } from './DownloadSort';
/**
 * @export
 */
export const AvailableFilesRequestConcreteTypeEnum = {
    org_sagebionetworks_repo_model_download_AvailableFilesRequest: 'org.sagebionetworks.repo.model.download.AvailableFilesRequest'
};
/**
 * @export
 */
export const AvailableFilesRequestFilterEnum = {
    eligibleForPackaging: 'eligibleForPackaging',
    ineligibleForPackaging: 'ineligibleForPackaging'
};
/**
 * Check if a given object implements the AvailableFilesRequest interface.
 */
export function instanceOfAvailableFilesRequest(value) {
    if (!('concreteType' in value) || value['concreteType'] === undefined)
        return false;
    if (!Object.values(AvailableFilesRequestConcreteTypeEnum).includes(value["concreteType"])) {
        return false;
    }
    return true;
}
export function AvailableFilesRequestFromJSON(json) {
    return AvailableFilesRequestFromJSONTyped(json, false);
}
export function AvailableFilesRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'concreteType': json['concreteType'],
        'nextPageToken': json['nextPageToken'] == null ? undefined : json['nextPageToken'],
        'sort': json['sort'] == null ? undefined : (json['sort'].map(DownloadSortFromJSON)),
        'filter': json['filter'] == null ? undefined : json['filter'],
    };
}
export function AvailableFilesRequestToJSON(json) {
    return AvailableFilesRequestToJSONTyped(json, false);
}
export function AvailableFilesRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'concreteType': value['concreteType'],
        'nextPageToken': value['nextPageToken'],
        'sort': value['sort'] == null ? undefined : (value['sort'].map(DownloadSortToJSON)),
        'filter': value['filter'],
    };
}
//# sourceMappingURL=AvailableFilesRequest.js.map