Default

object Default : Properties

A Properties instance that can be used as default and does not have any SerializersModule installed.

Functions

decodeFromMap
Link copied to clipboard
fun <T> decodeFromMap(deserializer: DeserializationStrategy<T>, map: Map<String, Any>): T

Decodes properties from the given map to a value of type T using the given deserializer. T may contain properties of nullable types; they will be filled by non-null values from the map, if present.

decodeFromStringMap
Link copied to clipboard
fun <T> decodeFromStringMap(deserializer: DeserializationStrategy<T>, map: Map<String, String>): T

Decodes properties from the given map to a value of type T using the given deserializer. String values are converted to respective primitive types using default conversion methods. T may contain properties of nullable types; they will be filled by non-null values from the map, if present.

encodeToMap
Link copied to clipboard
fun <T> encodeToMap(serializer: SerializationStrategy<T>, value: T): Map<String, Any>

Encodes properties from the given value to a map using the given serializer. null values are omitted from the output.

encodeToStringMap
Link copied to clipboard
fun <T> encodeToStringMap(serializer: SerializationStrategy<T>, value: T): Map<String, String>

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.

Properties

serializersModule
Link copied to clipboard
open override val serializersModule: SerializersModule