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 - ObjectMapper!: the mapper instance to use to deserialize the content

clazz - Class<T>!: 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
T: the deserialized content