When filtering is passed as a list, convert it to a dict when instantiating the resource