/* 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 { ColumnChangeFromJSON, ColumnChangeToJSON, } from './ColumnChange';
/**
 * @export
 */
export const TableSchemaChangeRequestConcreteTypeEnum = {
    org_sagebionetworks_repo_model_table_TableSchemaChangeRequest: 'org.sagebionetworks.repo.model.table.TableSchemaChangeRequest'
};
/**
 * Check if a given object implements the TableSchemaChangeRequest interface.
 */
export function instanceOfTableSchemaChangeRequest(value) {
    if (!('concreteType' in value) || value['concreteType'] === undefined)
        return false;
    if (!Object.values(TableSchemaChangeRequestConcreteTypeEnum).includes(value["concreteType"])) {
        return false;
    }
    return true;
}
export function TableSchemaChangeRequestFromJSON(json) {
    return TableSchemaChangeRequestFromJSONTyped(json, false);
}
export function TableSchemaChangeRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'concreteType': json['concreteType'],
        'entityId': json['entityId'] == null ? undefined : json['entityId'],
        'changes': json['changes'] == null ? undefined : (json['changes'].map(ColumnChangeFromJSON)),
        'orderedColumnIds': json['orderedColumnIds'] == null ? undefined : json['orderedColumnIds'],
    };
}
export function TableSchemaChangeRequestToJSON(json) {
    return TableSchemaChangeRequestToJSONTyped(json, false);
}
export function TableSchemaChangeRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'concreteType': value['concreteType'],
        'entityId': value['entityId'],
        'changes': value['changes'] == null ? undefined : (value['changes'].map(ColumnChangeToJSON)),
        'orderedColumnIds': value['orderedColumnIds'],
    };
}
//# sourceMappingURL=TableSchemaChangeRequest.js.map