/* 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 { FileHandleRestoreResultFromJSON, FileHandleRestoreResultToJSON, } from './FileHandleRestoreResult';
/**
 * @export
 */
export const FileHandleRestoreResponseConcreteTypeEnum = {
    org_sagebionetworks_repo_model_file_FileHandleRestoreResponse: 'org.sagebionetworks.repo.model.file.FileHandleRestoreResponse'
};
/**
 * Check if a given object implements the FileHandleRestoreResponse interface.
 */
export function instanceOfFileHandleRestoreResponse(value) {
    if (!('concreteType' in value) || value['concreteType'] === undefined)
        return false;
    if (!Object.values(FileHandleRestoreResponseConcreteTypeEnum).includes(value["concreteType"])) {
        return false;
    }
    return true;
}
export function FileHandleRestoreResponseFromJSON(json) {
    return FileHandleRestoreResponseFromJSONTyped(json, false);
}
export function FileHandleRestoreResponseFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'concreteType': json['concreteType'],
        'restoreResults': json['restoreResults'] == null ? undefined : (json['restoreResults'].map(FileHandleRestoreResultFromJSON)),
    };
}
export function FileHandleRestoreResponseToJSON(json) {
    return FileHandleRestoreResponseToJSONTyped(json, false);
}
export function FileHandleRestoreResponseToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'concreteType': value['concreteType'],
        'restoreResults': value['restoreResults'] == null ? undefined : (value['restoreResults'].map(FileHandleRestoreResultToJSON)),
    };
}
//# sourceMappingURL=FileHandleRestoreResponse.js.map