/* 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 { CurationTaskPropertiesFromJSON, CurationTaskPropertiesToJSON, } from './CurationTaskProperties';
/**
 * Check if a given object implements the CurationTask interface.
 */
export function instanceOfCurationTask(value) {
    return true;
}
export function CurationTaskFromJSON(json) {
    return CurationTaskFromJSONTyped(json, false);
}
export function CurationTaskFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'taskId': json['taskId'] == null ? undefined : json['taskId'],
        'dataType': json['dataType'] == null ? undefined : json['dataType'],
        'projectId': json['projectId'] == null ? undefined : json['projectId'],
        'instructions': json['instructions'] == null ? undefined : json['instructions'],
        'etag': json['etag'] == null ? undefined : json['etag'],
        'createdOn': json['createdOn'] == null ? undefined : json['createdOn'],
        'modifiedOn': json['modifiedOn'] == null ? undefined : json['modifiedOn'],
        'createdBy': json['createdBy'] == null ? undefined : json['createdBy'],
        'modifiedBy': json['modifiedBy'] == null ? undefined : json['modifiedBy'],
        'assigneePrincipalId': json['assigneePrincipalId'] == null ? undefined : json['assigneePrincipalId'],
        'taskProperties': json['taskProperties'] == null ? undefined : CurationTaskPropertiesFromJSON(json['taskProperties']),
    };
}
export function CurationTaskToJSON(json) {
    return CurationTaskToJSONTyped(json, false);
}
export function CurationTaskToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'taskId': value['taskId'],
        'dataType': value['dataType'],
        'projectId': value['projectId'],
        'instructions': value['instructions'],
        'etag': value['etag'],
        'createdOn': value['createdOn'],
        'modifiedOn': value['modifiedOn'],
        'createdBy': value['createdBy'],
        'modifiedBy': value['modifiedBy'],
        'assigneePrincipalId': value['assigneePrincipalId'],
        'taskProperties': CurationTaskPropertiesToJSON(value['taskProperties']),
    };
}
//# sourceMappingURL=CurationTask.js.map