deobjectify

abstract fun deobjectify(object: Any): T

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

Throws

if object does not have the shape expected for a T.