KeybindsSerializer

class KeybindsSerializer : JsonSerializer<Map<ActionFromKey, KeyCode>>

Serializer for keybinds that serializes ActionFromKey by using the enum values' names instead of ActionFromKey.toString.

Constructors

Link copied to clipboard
fun KeybindsSerializer()

Functions

Link copied to clipboard
open override fun serialize(src: Map<ActionFromKey, KeyCode>, typeOfSrc: Type, context: JsonSerializationContext): JsonObject

{@inheritDoc}.