/* 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 { LiteralSetValueFromJSONTyped, LiteralSetValueToJSON, } from './LiteralSetValue';
import { TemplateSetValueFromJSONTyped, TemplateSetValueToJSON, } from './TemplateSetValue';
export function SetValueFromJSON(json) {
    return SetValueFromJSONTyped(json, false);
}
export function SetValueFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    switch (json['concreteType']) {
        case 'org.sagebionetworks.repo.model.grid.update.LiteralSetValue':
            return Object.assign({}, LiteralSetValueFromJSONTyped(json, true), { concreteType: 'org.sagebionetworks.repo.model.grid.update.LiteralSetValue' });
        case 'org.sagebionetworks.repo.model.grid.update.TemplateSetValue':
            return Object.assign({}, TemplateSetValueFromJSONTyped(json, true), { concreteType: 'org.sagebionetworks.repo.model.grid.update.TemplateSetValue' });
        default:
            return json;
    }
}
export function SetValueToJSON(json) {
    return SetValueToJSONTyped(json, false);
}
export function SetValueToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    switch (value['concreteType']) {
        case 'org.sagebionetworks.repo.model.grid.update.LiteralSetValue':
            return Object.assign({}, LiteralSetValueToJSON(value), { concreteType: 'org.sagebionetworks.repo.model.grid.update.LiteralSetValue' });
        case 'org.sagebionetworks.repo.model.grid.update.TemplateSetValue':
            return Object.assign({}, TemplateSetValueToJSON(value), { concreteType: 'org.sagebionetworks.repo.model.grid.update.TemplateSetValue' });
        default:
            return value;
    }
}
//# sourceMappingURL=SetValue.js.map