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

typeOfSrc

The type of src (ShopAction)

context

The json serialization context

Throws

JsonSyntaxException

If the shopAction is unknown or an ItemStack failed to serialize