Serializes and deserializes a Python type into a wire format.
Methods
deserialize
deserialize
(
serialized
:
schema
.
serde
.
serde
.
WireFormat
,
serialized_version
:
str
=
''
,
**
kwargs
)
->
schema
.
serde
.
serde
.
PythonType
Deserializes the given wire format into a Python object.
Args
serialized
The serialized object.
serialized_version
The version of the serialized object. This is used to
handle changes in deserialization logic across different versions.
**kwargs
Additional keyword arguments to pass to the deserialization
function.
Returns
The deserialized object.
serialize
serialize
(
obj
:
schema
.
serde
.
serde
.
PythonType
,
**
kwargs
)
->
schema
.
serde
.
serde
.
WireFormat
Serializes the given object into a wire format.



