/* 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 FileResultFailureCodeEnum = {
    NOT_FOUND: 'NOT_FOUND',
    UNAUTHORIZED: 'UNAUTHORIZED'
};
/**
 * Check if a given object implements the FileResult interface.
 */
export function instanceOfFileResult(value) {
    return true;
}
export function FileResultFromJSON(json) {
    return FileResultFromJSONTyped(json, false);
}
export function FileResultFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'fileHandleId': json['fileHandleId'] == null ? undefined : json['fileHandleId'],
        'fileHandle': json['fileHandle'] == null ? undefined : FileHandleFromJSON(json['fileHandle']),
        'preSignedURL': json['preSignedURL'] == null ? undefined : json['preSignedURL'],
        'previewPreSignedURL': json['previewPreSignedURL'] == null ? undefined : json['previewPreSignedURL'],
        'failureCode': json['failureCode'] == null ? undefined : json['failureCode'],
    };
}
export function FileResultToJSON(json) {
    return FileResultToJSONTyped(json, false);
}
export function FileResultToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'fileHandleId': value['fileHandleId'],
        'fileHandle': FileHandleToJSON(value['fileHandle']),
        'preSignedURL': value['preSignedURL'],
        'previewPreSignedURL': value['previewPreSignedURL'],
        'failureCode': value['failureCode'],
    };
}
//# sourceMappingURL=FileResult.js.map