Deobjectifier

interface Deobjectifier<T>

Converts plain, format-agnostic objects (e.g. maps, lists, strings, numbers, booleans) — as produced by parsing some concrete textual format (JSON, YAML, XML, ...) into a generic object tree — back into values of type T.

This is the inverse of Objectifier, and it is the step a Deserializer relies on after a format-specific parser has already turned raw text into a plain object tree.

Type Parameters

T

the type of values this deobjectifier can produce.

See also

for the inverse conversion.

Inheritors

Functions

Link copied to clipboard
abstract fun deobjectify(object: Any): T

Converts a single plain object into a value of type T.

Link copied to clipboard
abstract fun deobjectifyMany(object: Any): Iterable<T>

Converts a plain object representing a collection of values into an Iterable of T.