def deserialize(self, byte_array): if byte_array: return jsonpickle.decode(byte_array.decode("UTF-8")) else: return None