encodeToString
abstract fun <T> encodeToString(serializer: SerializationStrategy<T>, value: T): String
Content copied to clipboard
Serializes and encodes the given value to string using the given serializer.
Throws
in case of any encoding-specific error
if the encoded input does not comply format's specification