/* 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 { AsynchronousRequestBodyFromJSON, AsynchronousRequestBodyToJSON, } from './AsynchronousRequestBody';
import { AsynchronousResponseBodyFromJSON, AsynchronousResponseBodyToJSON, } from './AsynchronousResponseBody';
import { CallersContextFromJSON, CallersContextToJSON, } from './CallersContext';
/**
 * @export
 */
export const AsynchronousJobStatusJobStateEnum = {
    PROCESSING: 'PROCESSING',
    FAILED: 'FAILED',
    COMPLETE: 'COMPLETE'
};
/**
 * Check if a given object implements the AsynchronousJobStatus interface.
 */
export function instanceOfAsynchronousJobStatus(value) {
    return true;
}
export function AsynchronousJobStatusFromJSON(json) {
    return AsynchronousJobStatusFromJSONTyped(json, false);
}
export function AsynchronousJobStatusFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'jobState': json['jobState'] == null ? undefined : json['jobState'],
        'jobCanceling': json['jobCanceling'] == null ? undefined : json['jobCanceling'],
        'requestBody': json['requestBody'] == null ? undefined : AsynchronousRequestBodyFromJSON(json['requestBody']),
        'responseBody': json['responseBody'] == null ? undefined : AsynchronousResponseBodyFromJSON(json['responseBody']),
        'etag': json['etag'] == null ? undefined : json['etag'],
        'jobId': json['jobId'] == null ? undefined : json['jobId'],
        'startedByUserId': json['startedByUserId'] == null ? undefined : json['startedByUserId'],
        'startedOn': json['startedOn'] == null ? undefined : json['startedOn'],
        'changedOn': json['changedOn'] == null ? undefined : json['changedOn'],
        'progressMessage': json['progressMessage'] == null ? undefined : json['progressMessage'],
        'progressCurrent': json['progressCurrent'] == null ? undefined : json['progressCurrent'],
        'progressTotal': json['progressTotal'] == null ? undefined : json['progressTotal'],
        'exception': json['exception'] == null ? undefined : json['exception'],
        'errorMessage': json['errorMessage'] == null ? undefined : json['errorMessage'],
        'errorDetails': json['errorDetails'] == null ? undefined : json['errorDetails'],
        'runtimeMS': json['runtimeMS'] == null ? undefined : json['runtimeMS'],
        'callersContext': json['callersContext'] == null ? undefined : CallersContextFromJSON(json['callersContext']),
    };
}
export function AsynchronousJobStatusToJSON(json) {
    return AsynchronousJobStatusToJSONTyped(json, false);
}
export function AsynchronousJobStatusToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'jobState': value['jobState'],
        'jobCanceling': value['jobCanceling'],
        'requestBody': AsynchronousRequestBodyToJSON(value['requestBody']),
        'responseBody': AsynchronousResponseBodyToJSON(value['responseBody']),
        'etag': value['etag'],
        'jobId': value['jobId'],
        'startedByUserId': value['startedByUserId'],
        'startedOn': value['startedOn'],
        'changedOn': value['changedOn'],
        'progressMessage': value['progressMessage'],
        'progressCurrent': value['progressCurrent'],
        'progressTotal': value['progressTotal'],
        'exception': value['exception'],
        'errorMessage': value['errorMessage'],
        'errorDetails': value['errorDetails'],
        'runtimeMS': value['runtimeMS'],
        'callersContext': CallersContextToJSON(value['callersContext']),
    };
}
//# sourceMappingURL=AsynchronousJobStatus.js.map