Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Serializer():
- """
- Class to provide serialization/deserialization functionality.
- Mostly, other class will simple inherit this class to add
- serializability functionality
- """
- def serialize(self):
- return jsonpickle.encode(self)
- @staticmethod
- def deserialize(ser_str):
- return jsonpickle.decode(ser_str)
Add Comment
Please, Sign In to add comment