Source code for Persistence.Serializable

from abc import ABCMeta, abstractmethod

[docs]class Serializable(metaclass=ABCMeta): @abstractmethod
[docs] def serialize(self): return self.__dict__
@staticmethod @abstractmethod
[docs] def deserialize(serial): return