Default

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

Properties

Link copied to clipboard
open val serializersModule: <Error class: unknown class>

Functions

Link copied to clipboard
fun <T> decodeFromMap(deserializer: <Error class: unknown class><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.

Link copied to clipboard
inline fun <T> Properties.decodeFromMap(map: Map<String, Any>): T

Decodes properties from given map, assigns them to an object using serializer for reified type T and returns this object. T may contain properties of nullable types; they will be filled by non-null values from the map, if present.

Link copied to clipboard
fun <T> decodeFromStringMap(deserializer: <Error class: unknown class><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.

Link copied to clipboard

Decodes properties from given map, assigns them to an object using serializer for reified type T and returns this object. 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.

Link copied to clipboard
fun <T> encodeToMap(serializer: <Error class: unknown class><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.

Link copied to clipboard
inline fun <T> Properties.encodeToMap(value: T): Map<String, Any>

Encodes properties from given value to a map using serializer for reified type T and returns this map. null values are omitted from the output.

Link copied to clipboard
fun <T> encodeToStringMap(serializer: <Error class: unknown class><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.

Link copied to clipboard
inline fun <T> Properties.encodeToStringMap(value: T): Map<String, String>

Encodes properties from given value to a map using serializer for reified type T and returns this map. Converts all primitive types to String using toString method. null values are omitted from the output.