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