import json
class Serializable:
def unserialize(self, data):
pass
def serialize(self): # pylint: disable=no-self-use
out = {}
return out
def serialize_json(self):
return json.dumps(self.serialize())
def unserialize_json(self, json_data):
self.unserialize(json.loads(json_data))