/* 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 { DownloadListItemResultFromJSON, DownloadListItemResultToJSON, } from './DownloadListItemResult';
/**
 * @export
 */
export const AvailableFilesResponseConcreteTypeEnum = {
    org_sagebionetworks_repo_model_download_AvailableFilesResponse: 'org.sagebionetworks.repo.model.download.AvailableFilesResponse'
};
/**
 * Check if a given object implements the AvailableFilesResponse interface.
 */
export function instanceOfAvailableFilesResponse(value) {
    if (!('concreteType' in value) || value['concreteType'] === undefined)
        return false;
    if (!Object.values(AvailableFilesResponseConcreteTypeEnum).includes(value["concreteType"])) {
        return false;
    }
    return true;
}
export function AvailableFilesResponseFromJSON(json) {
    return AvailableFilesResponseFromJSONTyped(json, false);
}
export function AvailableFilesResponseFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'concreteType': json['concreteType'],
        'page': json['page'] == null ? undefined : (json['page'].map(DownloadListItemResultFromJSON)),
        'nextPageToken': json['nextPageToken'] == null ? undefined : json['nextPageToken'],
    };
}
export function AvailableFilesResponseToJSON(json) {
    return AvailableFilesResponseToJSONTyped(json, false);
}
export function AvailableFilesResponseToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'concreteType': value['concreteType'],
        'page': value['page'] == null ? undefined : (value['page'].map(DownloadListItemResultToJSON)),
        'nextPageToken': value['nextPageToken'],
    };
}
//# sourceMappingURL=AvailableFilesResponse.js.map