encode

abstract fun <T : Any> encode(type: KType, value: T): String

Encodes the given value to a string