def filter(self, model=None, context=None):
if model is None:<EOL><INDENT>return<EOL><DEDENT>self.filter_properties(model, context=context)<EOL>self.filter_entities(model, context=context)<EOL>self.filter_collections(model, context=context)<EOL>
Perform filtering on the model. Will change model in place.
:param model: object or dict
:param context: object, dict or None
:return: None