/* 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 { FileBasedMetadataTaskPropertiesFromJSONTyped, FileBasedMetadataTaskPropertiesToJSON, } from './FileBasedMetadataTaskProperties';
import { RecordBasedMetadataTaskPropertiesFromJSONTyped, RecordBasedMetadataTaskPropertiesToJSON, } from './RecordBasedMetadataTaskProperties';
export function GridSupportedTaskPropertiesFromJSON(json) {
    return GridSupportedTaskPropertiesFromJSONTyped(json, false);
}
export function GridSupportedTaskPropertiesFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    switch (json['concreteType']) {
        case 'org.sagebionetworks.repo.model.curation.metadata.FileBasedMetadataTaskProperties':
            return Object.assign({}, FileBasedMetadataTaskPropertiesFromJSONTyped(json, true), { concreteType: 'org.sagebionetworks.repo.model.curation.metadata.FileBasedMetadataTaskProperties' });
        case 'org.sagebionetworks.repo.model.curation.metadata.RecordBasedMetadataTaskProperties':
            return Object.assign({}, RecordBasedMetadataTaskPropertiesFromJSONTyped(json, true), { concreteType: 'org.sagebionetworks.repo.model.curation.metadata.RecordBasedMetadataTaskProperties' });
        default:
            return json;
    }
}
export function GridSupportedTaskPropertiesToJSON(json) {
    return GridSupportedTaskPropertiesToJSONTyped(json, false);
}
export function GridSupportedTaskPropertiesToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    switch (value['concreteType']) {
        case 'org.sagebionetworks.repo.model.curation.metadata.FileBasedMetadataTaskProperties':
            return Object.assign({}, FileBasedMetadataTaskPropertiesToJSON(value), { concreteType: 'org.sagebionetworks.repo.model.curation.metadata.FileBasedMetadataTaskProperties' });
        case 'org.sagebionetworks.repo.model.curation.metadata.RecordBasedMetadataTaskProperties':
            return Object.assign({}, RecordBasedMetadataTaskPropertiesToJSON(value), { concreteType: 'org.sagebionetworks.repo.model.curation.metadata.RecordBasedMetadataTaskProperties' });
        default:
            return value;
    }
}
//# sourceMappingURL=GridSupportedTaskProperties.js.map