/* 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 { FileHandleAssociationFromJSON, FileHandleAssociationToJSON, } from './FileHandleAssociation';
/**
 * Check if a given object implements the FileDownloadRecord interface.
 */
export function instanceOfFileDownloadRecord(value) {
    return true;
}
export function FileDownloadRecordFromJSON(json) {
    return FileDownloadRecordFromJSONTyped(json, false);
}
export function FileDownloadRecordFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'userId': json['userId'] == null ? undefined : json['userId'],
        'downloadedFile': json['downloadedFile'] == null ? undefined : FileHandleAssociationFromJSON(json['downloadedFile']),
    };
}
export function FileDownloadRecordToJSON(json) {
    return FileDownloadRecordToJSONTyped(json, false);
}
export function FileDownloadRecordToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'userId': value['userId'],
        'downloadedFile': FileHandleAssociationToJSON(value['downloadedFile']),
    };
}
//# sourceMappingURL=FileDownloadRecord.js.map