toKpaElement

fun YamlElement.toKpaElement(): KpaElement(source)

Wraps this YamlElement in the appropriate YamlElementAdapter.

YamlNull is a YamlPrimitive, so the is YamlPrimitive branch catches it.

Return

A YamlElementAdapter wrapping this element.