Skip to content

Serialization

Internal API

These classes are for internal use only.

Users should interact with Client and other public API classes instead.


serialization

serialize

Serialize the value.

Parameters:

  • val (dict) –

    value to serialize

Returns:

  • JSON

    serialized value

convert

Convert the given value to the given type.

Parameters:

  • t (type[Any] | Any) –

    type in which to convert value

  • v (object) –

    value to be converted

Raises:

Returns:

  • object

    converted value