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