/* 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 DownloadList interface.
 */
export function instanceOfDownloadList(value) {
    return true;
}
export function DownloadListFromJSON(json) {
    return DownloadListFromJSONTyped(json, false);
}
export function DownloadListFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'ownerId': json['ownerId'] == null ? undefined : json['ownerId'],
        'updatedOn': json['updatedOn'] == null ? undefined : json['updatedOn'],
        'etag': json['etag'] == null ? undefined : json['etag'],
        'filesToDownload': json['filesToDownload'] == null ? undefined : (json['filesToDownload'].map(FileHandleAssociationFromJSON)),
    };
}
export function DownloadListToJSON(json) {
    return DownloadListToJSONTyped(json, false);
}
export function DownloadListToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'ownerId': value['ownerId'],
        'updatedOn': value['updatedOn'],
        'etag': value['etag'],
        'filesToDownload': value['filesToDownload'] == null ? undefined : (value['filesToDownload'].map(FileHandleAssociationToJSON)),
    };
}
//# sourceMappingURL=DownloadList.js.map