encode

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

Encodes the given value to a string