serialize
open override fun serialize(src: ShopAction, typeOfSrc: Type, context: JsonSerializationContext): JsonElement
Serializes ShopAction to JsonElement
Since
0.2.0
Return
The serialized ShopAction
Parameters
src
The ShopAction to serialize to a JsonElement
type Of Src
The type of src (ShopAction)
context
The json serialization context
Throws
Json Syntax Exception
If the shopAction is unknown or an ItemStack failed to serialize