code: def filter_properties(self, model, context=None):
          
          if model is None:
              return
  
          for property_name in self.properties:
              prop = self.properties[property_name]
              value = self.get(model, property_name)
              if value is None:
                  continue
  
              filtered_value = prop.filter(
                  value=value,
                  model=model,
                  context=context
              )
              if value != filtered_value:  # unless changed!
                  self.set(model, property_name, filtered_value)
docs: Filter simple properties
          Runs filters on simple properties changing them in place.
          :param model:  object or dict
          :param context: object, dict or None
          :return: None