jztools.serializer.abstract_type_serializer#
Classes
Serializes a specific type of object. |
- class jztools.serializer.abstract_type_serializer.AbstractTypeSerializer#
Bases:
ABCSerializes a specific type of object. A target class to serialize can inherit form this class or be handled with a standalone class that implements this interface. In the second case, class method
check_type()needs to be overloaded.- classmethod check_type(obj)#
Returns true if the obj is of a type handled by this class.