protected abstract fun doDeserialize(topic: String, data: ByteArray): T
Extending classes must implement this function to convert the ByteArray back to its original type T.
topic
- associated with data
Return
T deserialized from data
See Also