toJson

abstract fun toJson(): Map<String, Any>(source)

Converts this block of code to a JSON representation. This can be useful for serialization, debugging, or for interfacing with other components that consume JSON.

Return

A map representing the JSON structure of this block of code.