Skip to content

Deserializer

Xavier F. Gouchet edited this page Sep 4, 2024 · 1 revision

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.

Clone this wiki locally