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.

Functions

deserialize

abstract fun deserialize(model: P): R?

Deserializes the data from the given payload type into given output type.

Return

the model represented by the given payload, or null when deserialization is impossible.

⚠️ **GitHub.com Fallback** ⚠️