ulkb.Object.serialize#

Object.serialize(to=None, path=None, format=None, encoding=None, **kwargs)[source]#

Serializes object to stream.

Parameters:
  • to – Target stream or file path.

  • path – Target file path.

  • format – Target format.

  • encoding – Encoding.

  • kwargs – Options to serializer.

Returns:

The resulting stream if to is None. Otherwise, write the resulting stream to to and returns None.