Companion

Properties

Link copied to clipboard

An empty GenericElement with no entries.

Functions

Link copied to clipboard
fun <T> encodeToElement(serializer: KSerializer<T>, item: T): GenericElement

Encodes the provided item into a GenericElement using the specified serializer.

Link copied to clipboard

Returns the empty element if the given element is null, otherwise returns the element.