-
- All Implemented Interfaces:
-
com.google.gson.JsonSerializer
public final class KeybindsSerializer implements JsonSerializer<Map<ActionFromKey, KeyCode>>
Serializer for keybinds that serializes ActionFromKey by using the enum values' names instead of ActionFromKey.toString.
-
-
Constructor Summary
Constructors Constructor Description KeybindsSerializer()
-
Method Summary
Modifier and Type Method Description JsonObjectserialize(Map<ActionFromKey, KeyCode> src, Type typeOfSrc, JsonSerializationContext context){@inheritDoc}. -
-
Method Detail
-
serialize
JsonObject serialize(Map<ActionFromKey, KeyCode> src, Type typeOfSrc, JsonSerializationContext context)
{@inheritDoc}.
-
-
-
-