toJson

open override fun toJson(): Map<String, Any?>(source)

Converts the declaration to a JSON representation. Useful for serialization or debugging purposes.

Return

A map containing the JSON representation of the declaration.