serialize

open override fun serialize(style: Style, typeOfSrc: Type, context: JsonSerializationContext): JsonElement

Serializes Style to JsonElement

Since

0.2.0

Return

The serialized Style

Parameters

style

The Style to serialize to a JsonElement

typeOfSrc

The type of src (Style)

context

The json serialization context

Throws

JsonSyntaxException

If the hoverevent action is invalid