/* 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 { FileHandleFromJSON, FileHandleToJSON, } from './FileHandle';
/**
 * @export
 */
export const FileHandleCopyResultFailureCodeEnum = {
    NOT_FOUND: 'NOT_FOUND',
    UNAUTHORIZED: 'UNAUTHORIZED'
};
/**
 * Check if a given object implements the FileHandleCopyResult interface.
 */
export function instanceOfFileHandleCopyResult(value) {
    return true;
}
export function FileHandleCopyResultFromJSON(json) {
    return FileHandleCopyResultFromJSONTyped(json, false);
}
export function FileHandleCopyResultFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'newFileHandle': json['newFileHandle'] == null ? undefined : FileHandleFromJSON(json['newFileHandle']),
        'originalFileHandleId': json['originalFileHandleId'] == null ? undefined : json['originalFileHandleId'],
        'failureCode': json['failureCode'] == null ? undefined : json['failureCode'],
    };
}
export function FileHandleCopyResultToJSON(json) {
    return FileHandleCopyResultToJSONTyped(json, false);
}
export function FileHandleCopyResultToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'newFileHandle': FileHandleToJSON(value['newFileHandle']),
        'originalFileHandleId': value['originalFileHandleId'],
        'failureCode': value['failureCode'],
    };
}
//# sourceMappingURL=FileHandleCopyResult.js.map