toJson

@NotNull
open fun toJson(): @NotNull JsonElement

Converts this metadata to a JSON element.

Return

the JSON representation

Since

1.15.2