if jsonParam['checkBoxModeEnabled'] != None:
    filter.CheckBoxModeEnabled = jsonParam['checkBoxModeEnabled']
if jsonParam['height'] != None:
    filter.Height = jsonParam['height']
if jsonParam['includeAllValues'] != None:
    filter.IncludeAllValues = jsonParam['includeAllValues']
if jsonParam['includeEmpty'] != None:
    filter.IncludeEmpty = jsonParam['includeEmpty']
if jsonParam['searchExpression'] != None:
    filter.SearchExpression = jsonParam['searchExpression']
if jsonParam['searchFieldVisible'] != None:
    filter.SearchFieldVisible = jsonParam['searchFieldVisible']
if jsonParam['value'] != None:
    dataType = dataTable.Columns[jsonParam['column']].RowValues.DataType
    castValues = []
    for val in jsonParam['value']:
        castValues.append(getCastValue(val, dataType))
    if dataType == DataType.Real or dataType == DataType.SingleReal:
        formatter = dataTable.Columns[jsonParam['column']].Properties.Formatter
        filter.SetSelection([ round(e, formatter.DecimalDigits) for e in castValues ])
    else:
        filter.SetSelection(castValues)
