/* 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.
 */
/**
 * Check if a given object implements the CancelControl interface.
 */
export function instanceOfCancelControl(value) {
    return true;
}
export function CancelControlFromJSON(json) {
    return CancelControlFromJSONTyped(json, false);
}
export function CancelControlFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'submissionId': json['submissionId'] == null ? undefined : json['submissionId'],
        'userId': json['userId'] == null ? undefined : json['userId'],
        'canCancel': json['canCancel'] == null ? undefined : json['canCancel'],
        'cancelRequested': json['cancelRequested'] == null ? undefined : json['cancelRequested'],
    };
}
export function CancelControlToJSON(json) {
    return CancelControlToJSONTyped(json, false);
}
export function CancelControlToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'submissionId': value['submissionId'],
        'userId': value['userId'],
        'canCancel': value['canCancel'],
        'cancelRequested': value['cancelRequested'],
    };
}
//# sourceMappingURL=CancelControl.js.map