Map objToFilter(Map obj) { Map filters = {}; for (String k in obj.keys) { filters[k] = {'vl': obj[k], 'op': "="}; } // return filters; }