/* 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 { EntityFromJSON, EntityToJSON, } from './Entity';
import { ColumnModelFromJSON, ColumnModelToJSON, } from './ColumnModel';
/**
 * Check if a given object implements the TableDescription interface.
 */
export function instanceOfTableDescription(value) {
    return true;
}
export function TableDescriptionFromJSON(json) {
    return TableDescriptionFromJSONTyped(json, false);
}
export function TableDescriptionFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'tableType': json['tableType'] == null ? undefined : json['tableType'],
        'entity': json['entity'] == null ? undefined : EntityFromJSON(json['entity']),
        'columnModels': json['columnModels'] == null ? undefined : (json['columnModels'].map(ColumnModelFromJSON)),
    };
}
export function TableDescriptionToJSON(json) {
    return TableDescriptionToJSONTyped(json, false);
}
export function TableDescriptionToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'tableType': value['tableType'],
        'entity': EntityToJSON(value['entity']),
        'columnModels': value['columnModels'] == null ? undefined : (value['columnModels'].map(ColumnModelToJSON)),
    };
}
//# sourceMappingURL=TableDescription.js.map