open fun <T : Any> getContentAs(mapper: ObjectMapper, clazz: Class<T>): T
(source)
The message content, deserialized to a Java class.
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
IOException
- if the content could not successfully be deserialized.
Return
the deserialized content