/* 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 { ModelSubmissionStatusFromJSON, ModelSubmissionStatusToJSON, } from './ModelSubmissionStatus';
/**
 * Check if a given object implements the SubmissionStatusBatch interface.
 */
export function instanceOfSubmissionStatusBatch(value) {
    return true;
}
export function SubmissionStatusBatchFromJSON(json) {
    return SubmissionStatusBatchFromJSONTyped(json, false);
}
export function SubmissionStatusBatchFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'statuses': json['statuses'] == null ? undefined : (json['statuses'].map(ModelSubmissionStatusFromJSON)),
        'batchToken': json['batchToken'] == null ? undefined : json['batchToken'],
        'isFirstBatch': json['isFirstBatch'] == null ? undefined : json['isFirstBatch'],
        'isLastBatch': json['isLastBatch'] == null ? undefined : json['isLastBatch'],
    };
}
export function SubmissionStatusBatchToJSON(json) {
    return SubmissionStatusBatchToJSONTyped(json, false);
}
export function SubmissionStatusBatchToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'statuses': value['statuses'] == null ? undefined : (value['statuses'].map(ModelSubmissionStatusToJSON)),
        'batchToken': value['batchToken'],
        'isFirstBatch': value['isFirstBatch'],
        'isLastBatch': value['isLastBatch'],
    };
}
//# sourceMappingURL=SubmissionStatusBatch.js.map