Deserializer - DataDog/dd-sdk-android GitHub Wiki
interface Deserializer<P : Any, R : Any>
The Deserializer<P, R> generic interface. Should be implemented by any custom deserializer.
FOR INTERNAL USAGE ONLY. THIS INTERFACE CONTENT MAY CHANGE WITHOUT NOTICE.
abstract fun deserialize(model: P): R?
Deserializes the data from the given payload type into given output type.
the model represented by the given payload, or null when deserialization is impossible.