MCPcopy Create free account
hub / github.com/TextGeneratorio/text-generator.io / to_dict

Method to_dict

questions/sql_models.py:33–38  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

31 __abstract__ = True
32
33 def to_dict(self):
34 result = {c.name: getattr(self, c.name) for c in self.__table__.columns}
35 for k, v in result.items():
36 if hasattr(v, "isoformat"):
37 result[k] = v.isoformat()
38 return result
39
40
41class User(BaseModel):

Callers 11

get_userFunction · 0.45
get_user_stripe_usageFunction · 0.45
api_loginFunction · 0.45
api_signupFunction · 0.45
api_current_userFunction · 0.45
list_documents_routeFunction · 0.45
get_document_routeFunction · 0.45
list_documents_routeFunction · 0.45
get_document_routeFunction · 0.45
defaultMethod · 0.45
get_userFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected