CustomObject

sealed interface CustomObject

Marks a given object as an object which contains custom data (extraData).

Inheritors

Properties

Link copied to clipboard
abstract val extraData: Map<String, Any>

The custom key-value data associated with this object.

Functions

Link copied to clipboard
open fun <T> getExtraValue(key: String, default: T): T

Returns the value associated with the given key, or default if the key is not present in the extraData.