KpaElement

sealed interface KpaElement(source)

Common parent of every value type the JSON-Pointer abstraction can address.

Sealed so adapter implementors must pick exactly one of KpaStruct, KpaList, or KpaPrimitive.

Inheritors

Functions

Link copied to clipboard
inline fun <B : Any> KpaElement.requireBacking(libraryName: String): B

Unwraps this KpaElement to its native backing value of type B, or throws if this element is not a BackedKpaElement whose backing is of type B.