/* 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 { CrdtIdFromJSON, CrdtIdToJSON, } from './CrdtId';
/**
 * Check if a given object implements the ReplicaSelectionModel interface.
 */
export function instanceOfReplicaSelectionModel(value) {
    return true;
}
export function ReplicaSelectionModelFromJSON(json) {
    return ReplicaSelectionModelFromJSONTyped(json, false);
}
export function ReplicaSelectionModelFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'columnSelection': json['columnSelection'] == null ? undefined : (json['columnSelection'].map(CrdtIdFromJSON)),
        'rowSelection': json['rowSelection'] == null ? undefined : (json['rowSelection'].map(CrdtIdFromJSON)),
        'columnSelectAll': json['columnSelectAll'] == null ? undefined : json['columnSelectAll'],
        'rowSelectAll': json['rowSelectAll'] == null ? undefined : json['rowSelectAll'],
    };
}
export function ReplicaSelectionModelToJSON(json) {
    return ReplicaSelectionModelToJSONTyped(json, false);
}
export function ReplicaSelectionModelToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'columnSelection': value['columnSelection'] == null ? undefined : (value['columnSelection'].map(CrdtIdToJSON)),
        'rowSelection': value['rowSelection'] == null ? undefined : (value['rowSelection'].map(CrdtIdToJSON)),
        'columnSelectAll': value['columnSelectAll'],
        'rowSelectAll': value['rowSelectAll'],
    };
}
//# sourceMappingURL=ReplicaSelectionModel.js.map