encodeToString

inline fun <T> StringFormat.encodeToString(value: T): String

Serializes and encodes the given value to string using serializer retrieved from the reified type parameter.