/* 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.
 */
/**
 * @export
 */
export const TableStatusStateEnum = {
    AVAILABLE: 'AVAILABLE',
    PROCESSING: 'PROCESSING',
    PROCESSING_FAILED: 'PROCESSING_FAILED'
};
/**
 * Check if a given object implements the TableStatus interface.
 */
export function instanceOfTableStatus(value) {
    return true;
}
export function TableStatusFromJSON(json) {
    return TableStatusFromJSONTyped(json, false);
}
export function TableStatusFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'state': json['state'] == null ? undefined : json['state'],
        'tableId': json['tableId'] == null ? undefined : json['tableId'],
        'version': json['version'] == null ? undefined : json['version'],
        'startedOn': json['startedOn'] == null ? undefined : json['startedOn'],
        'changedOn': json['changedOn'] == null ? undefined : json['changedOn'],
        'resetToken': json['resetToken'] == null ? undefined : json['resetToken'],
        'lastTableChangeEtag': json['lastTableChangeEtag'] == null ? undefined : json['lastTableChangeEtag'],
        'progressMessage': json['progressMessage'] == null ? undefined : json['progressMessage'],
        'progressCurrent': json['progressCurrent'] == null ? undefined : json['progressCurrent'],
        'progressTotal': json['progressTotal'] == null ? undefined : json['progressTotal'],
        'errorMessage': json['errorMessage'] == null ? undefined : json['errorMessage'],
        'errorDetails': json['errorDetails'] == null ? undefined : json['errorDetails'],
        'totalTimeMS': json['totalTimeMS'] == null ? undefined : json['totalTimeMS'],
    };
}
export function TableStatusToJSON(json) {
    return TableStatusToJSONTyped(json, false);
}
export function TableStatusToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'state': value['state'],
        'tableId': value['tableId'],
        'version': value['version'],
        'startedOn': value['startedOn'],
        'changedOn': value['changedOn'],
        'resetToken': value['resetToken'],
        'lastTableChangeEtag': value['lastTableChangeEtag'],
        'progressMessage': value['progressMessage'],
        'progressCurrent': value['progressCurrent'],
        'progressTotal': value['progressTotal'],
        'errorMessage': value['errorMessage'],
        'errorDetails': value['errorDetails'],
        'totalTimeMS': value['totalTimeMS'],
    };
}
//# sourceMappingURL=TableStatus.js.map