upperBoundType

fun <ERROR CLASS>.upperBoundType(): <ERROR CLASS>?

This will return the upper bound type.

Example: Response will return String as TypeInfo