/* 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 DownloadOrder interface.
 */
export function instanceOfDownloadOrder(value) {
    return true;
}
export function DownloadOrderFromJSON(json) {
    return DownloadOrderFromJSONTyped(json, false);
}
export function DownloadOrderFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'files': json['files'] == null ? undefined : (json['files'].map(FileHandleAssociationFromJSON)),
        'orderId': json['orderId'] == null ? undefined : json['orderId'],
        'createdBy': json['createdBy'] == null ? undefined : json['createdBy'],
        'createdOn': json['createdOn'] == null ? undefined : json['createdOn'],
        'zipFileName': json['zipFileName'] == null ? undefined : json['zipFileName'],
        'totalSizeBytes': json['totalSizeBytes'] == null ? undefined : json['totalSizeBytes'],
        'totalNumberOfFiles': json['totalNumberOfFiles'] == null ? undefined : json['totalNumberOfFiles'],
    };
}
export function DownloadOrderToJSON(json) {
    return DownloadOrderToJSONTyped(json, false);
}
export function DownloadOrderToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'files': value['files'] == null ? undefined : (value['files'].map(FileHandleAssociationToJSON)),
        'orderId': value['orderId'],
        'createdBy': value['createdBy'],
        'createdOn': value['createdOn'],
        'zipFileName': value['zipFileName'],
        'totalSizeBytes': value['totalSizeBytes'],
        'totalNumberOfFiles': value['totalNumberOfFiles'],
    };
}
//# sourceMappingURL=DownloadOrder.js.map