SerializedMapValue

class SerializedMapValue<T>(key: String, serialize: (T) -> String?, deserialize: (String) -> T)(source)

Simple type for handling serialization with StringMap delegation.

Report a problem

Constructors

Link copied to clipboard
constructor(key: String, serialize: (T) -> String?, deserialize: (String) -> T)

Functions

Link copied to clipboard
operator fun <T> SerializedMapValue<T>.getValue(thisRef: StringMap, property: KProperty<*>): T?

Simplifies property access delegation for HxAttributes when setting attribute values from a string constant.

Link copied to clipboard
operator fun <T> SerializedMapValue<T>.setValue(thisRef: StringMap, property: KProperty<*>, value: T?)

Simplifies property assignment delegation for HxAttributes when setting attribute values from a string constant.