tuweni / org.apache.tuweni.scuttlebutt.lib.model / FeedValue / getContentAs

getContentAs

open fun <T : Any> getContentAs(mapper: ObjectMapper, clazz: Class<T>): T (source)

The message content, deserialized to a Java class.

Parameters

mapper - the mapper instance to use to deserialize the content

clazz - the class to deserialize the content to

- the type to deserialize the content to

Exceptions

IOException - if the content could not successfully be deserialized.

Return
the deserialized content