asText

fun asText(): String

Casts this Content as a Text and retrieves its kotlin.String value. Throws an exception if the Content is not a Text.