/* 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 { AnnotationAnnotationsFromJSON, AnnotationAnnotationsToJSON, } from './AnnotationAnnotations';
import { V2AnnotationsFromJSON, V2AnnotationsToJSON, } from './V2Annotations';
/**
 * @export
 */
export const ModelSubmissionStatusStatusEnum = {
    OPEN: 'OPEN',
    CLOSED: 'CLOSED',
    SCORED: 'SCORED',
    INVALID: 'INVALID',
    VALIDATED: 'VALIDATED',
    EVALUATION_IN_PROGRESS: 'EVALUATION_IN_PROGRESS',
    RECEIVED: 'RECEIVED',
    REJECTED: 'REJECTED',
    ACCEPTED: 'ACCEPTED'
};
/**
 * Check if a given object implements the ModelSubmissionStatus interface.
 */
export function instanceOfModelSubmissionStatus(value) {
    return true;
}
export function ModelSubmissionStatusFromJSON(json) {
    return ModelSubmissionStatusFromJSONTyped(json, false);
}
export function ModelSubmissionStatusFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'id': json['id'] == null ? undefined : json['id'],
        'etag': json['etag'] == null ? undefined : json['etag'],
        'modifiedOn': json['modifiedOn'] == null ? undefined : json['modifiedOn'],
        'status': json['status'] == null ? undefined : json['status'],
        'score': json['score'] == null ? undefined : json['score'],
        'report': json['report'] == null ? undefined : json['report'],
        'annotations': json['annotations'] == null ? undefined : AnnotationAnnotationsFromJSON(json['annotations']),
        'submissionAnnotations': json['submissionAnnotations'] == null ? undefined : V2AnnotationsFromJSON(json['submissionAnnotations']),
        'entityId': json['entityId'] == null ? undefined : json['entityId'],
        'versionNumber': json['versionNumber'] == null ? undefined : json['versionNumber'],
        'statusVersion': json['statusVersion'] == null ? undefined : json['statusVersion'],
        'canCancel': json['canCancel'] == null ? undefined : json['canCancel'],
        'cancelRequested': json['cancelRequested'] == null ? undefined : json['cancelRequested'],
    };
}
export function ModelSubmissionStatusToJSON(json) {
    return ModelSubmissionStatusToJSONTyped(json, false);
}
export function ModelSubmissionStatusToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'id': value['id'],
        'etag': value['etag'],
        'modifiedOn': value['modifiedOn'],
        'status': value['status'],
        'score': value['score'],
        'report': value['report'],
        'annotations': AnnotationAnnotationsToJSON(value['annotations']),
        'submissionAnnotations': V2AnnotationsToJSON(value['submissionAnnotations']),
        'entityId': value['entityId'],
        'versionNumber': value['versionNumber'],
        'statusVersion': value['statusVersion'],
        'canCancel': value['canCancel'],
        'cancelRequested': value['cancelRequested'],
    };
}
//# sourceMappingURL=ModelSubmissionStatus.js.map