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
type Of Src
The type of src (Style)
context
The json serialization context
Throws
Json Syntax Exception
If the hoverevent action is invalid