TextMessageConverter

Converts between text and objects.

Properties

Link copied to clipboard
abstract val mediaType: String

The media type produced by this converter (to use as content-type header).

Functions

Link copied to clipboard
abstract fun <T> convertFromString(text: String, type: KTypeRef<T>): T

Converts the given text string into an object of type type.

Link copied to clipboard
abstract fun <T> convertToString(value: T, type: KTypeRef<T>): String

Converts the given value object into a string based on the specified static type.