code: def get(self, model, property_name):
          
          if type(model) is dict:
              if property_name not in model:
                  return None
              else:
                  return model[property_name]
          elif hasattr(model, 'get_' + property_name):
              getter = getattr(model, 'get_' + property_name)
              return getter()
          else:
              try:
                  return getattr(model, property_name)
              except AttributeError:
                  return None
docs: Get property from model. Use getter if possible.
          :param model: model or dict
          :param property_name: str, name on the model
          :return: mixed