encodeToStringMap

fun <T> encodeToStringMap(serializer: <Error class: unknown class><T>, value: T): Map<String, String>(source)

Encodes properties from the given value to a map using the given serializer. Converts all primitive types to String using toString method. null values are omitted from the output.