/* 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 { SnapshotRequestFromJSON, SnapshotRequestToJSON, } from './SnapshotRequest';
import { TableUpdateRequestFromJSON, TableUpdateRequestToJSON, } from './TableUpdateRequest';
/**
 * @export
 */
export const TableUpdateTransactionRequestConcreteTypeEnum = {
    org_sagebionetworks_repo_model_table_TableUpdateTransactionRequest: 'org.sagebionetworks.repo.model.table.TableUpdateTransactionRequest'
};
/**
 * Check if a given object implements the TableUpdateTransactionRequest interface.
 */
export function instanceOfTableUpdateTransactionRequest(value) {
    if (!('concreteType' in value) || value['concreteType'] === undefined)
        return false;
    if (!Object.values(TableUpdateTransactionRequestConcreteTypeEnum).includes(value["concreteType"])) {
        return false;
    }
    return true;
}
export function TableUpdateTransactionRequestFromJSON(json) {
    return TableUpdateTransactionRequestFromJSONTyped(json, false);
}
export function TableUpdateTransactionRequestFromJSONTyped(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(TableUpdateRequestFromJSON)),
        'createSnapshot': json['createSnapshot'] == null ? undefined : json['createSnapshot'],
        'snapshotOptions': json['snapshotOptions'] == null ? undefined : SnapshotRequestFromJSON(json['snapshotOptions']),
    };
}
export function TableUpdateTransactionRequestToJSON(json) {
    return TableUpdateTransactionRequestToJSONTyped(json, false);
}
export function TableUpdateTransactionRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'concreteType': value['concreteType'],
        'entityId': value['entityId'],
        'changes': value['changes'] == null ? undefined : (value['changes'].map(TableUpdateRequestToJSON)),
        'createSnapshot': value['createSnapshot'],
        'snapshotOptions': SnapshotRequestToJSON(value['snapshotOptions']),
    };
}
//# sourceMappingURL=TableUpdateTransactionRequest.js.map