/* 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 { ColumnModelFromJSONTyped, ColumnModelToJSON, } from './ColumnModel';
import { JsonSubColumnModelFromJSONTyped, JsonSubColumnModelToJSON, } from './JsonSubColumnModel';
export function ColumnModelInterfaceFromJSON(json) {
    return ColumnModelInterfaceFromJSONTyped(json, false);
}
export function ColumnModelInterfaceFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    switch (json['concreteType']) {
        case 'org.sagebionetworks.repo.model.table.ColumnModel':
            return Object.assign({}, ColumnModelFromJSONTyped(json, true), { concreteType: 'org.sagebionetworks.repo.model.table.ColumnModel' });
        case 'org.sagebionetworks.repo.model.table.JsonSubColumnModel':
            return Object.assign({}, JsonSubColumnModelFromJSONTyped(json, true), { concreteType: 'org.sagebionetworks.repo.model.table.JsonSubColumnModel' });
        default:
            return json;
    }
}
export function ColumnModelInterfaceToJSON(json) {
    return ColumnModelInterfaceToJSONTyped(json, false);
}
export function ColumnModelInterfaceToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    switch (value['concreteType']) {
        case 'org.sagebionetworks.repo.model.table.ColumnModel':
            return Object.assign({}, ColumnModelToJSON(value), { concreteType: 'org.sagebionetworks.repo.model.table.ColumnModel' });
        case 'org.sagebionetworks.repo.model.table.JsonSubColumnModel':
            return Object.assign({}, JsonSubColumnModelToJSON(value), { concreteType: 'org.sagebionetworks.repo.model.table.JsonSubColumnModel' });
        default:
            return value;
    }
}
//# sourceMappingURL=ColumnModelInterface.js.map