def to_dict(model_instance, dictionary=None):
  if dictionary is None:
    dictionary = {}

  model_instance._to_entity(dictionary)
  return dictionary
Convert model to dictionary.
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/ext/db/__init__.py/to_dict