code: def to_json(self, extras=None):
          
          extras = extras or {}
          to_dict = model_to_dict(self)
          to_dict.update(extras)
          return json.dumps(to_dict, cls=sel.serializers.JsonEncoder)
docs: Convert a model into a json using the playhouse shortcut.