MCPcopy Index your code
hub / github.com/fastapi/sqlmodel / from_orm

Method from_orm

sqlmodel/main.py:964–969  ·  view source on GitHub ↗
(
        cls: type[_TSQLModel],
        obj: Any,
        update: builtins.dict[str, Any] | None = None,
    )

Source from the content-addressed store, hash-verified

962 """
963 )
964 def from_orm(
965 cls: type[_TSQLModel],
966 obj: Any,
967 update: builtins.dict[str, Any] | None = None,
968 ) -> _TSQLModel:
969 return cls.model_validate(obj, update=update)
970
971 @classmethod
972 @deprecated(

Callers 1

Calls 1

model_validateMethod · 0.80

Tested by 1