/* 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 { TaskExecutionDetailsFromJSON, TaskExecutionDetailsToJSON, } from './TaskExecutionDetails';
/**
 * @export
 */
export const TaskStatusStateEnum = {
    NOT_STARTED: 'NOT_STARTED',
    IN_PROGRESS: 'IN_PROGRESS',
    EXECUTING: 'EXECUTING',
    IN_REVIEW: 'IN_REVIEW',
    COMPLETED: 'COMPLETED',
    CANCELED: 'CANCELED'
};
/**
 * Check if a given object implements the TaskStatus interface.
 */
export function instanceOfTaskStatus(value) {
    return true;
}
export function TaskStatusFromJSON(json) {
    return TaskStatusFromJSONTyped(json, false);
}
export function TaskStatusFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'taskId': json['taskId'] == null ? undefined : json['taskId'],
        'state': json['state'] == null ? undefined : json['state'],
        'executionDetails': json['executionDetails'] == null ? undefined : TaskExecutionDetailsFromJSON(json['executionDetails']),
        'lastUpdatedBy': json['lastUpdatedBy'] == null ? undefined : json['lastUpdatedBy'],
        'lastUpdatedOn': json['lastUpdatedOn'] == null ? undefined : json['lastUpdatedOn'],
        'dueDate': json['dueDate'] == null ? undefined : json['dueDate'],
        'etag': json['etag'] == null ? undefined : json['etag'],
    };
}
export function TaskStatusToJSON(json) {
    return TaskStatusToJSONTyped(json, false);
}
export function TaskStatusToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'taskId': value['taskId'],
        'state': value['state'],
        'executionDetails': TaskExecutionDetailsToJSON(value['executionDetails']),
        'lastUpdatedBy': value['lastUpdatedBy'],
        'lastUpdatedOn': value['lastUpdatedOn'],
        'dueDate': value['dueDate'],
        'etag': value['etag'],
    };
}
//# sourceMappingURL=TaskStatus.js.map