Skip to content

Commit

Permalink
#1274 fix: use custom JSON name for type field in AssistantTriggerKey
Browse files Browse the repository at this point in the history
  • Loading branch information
sds100 committed Oct 13, 2024
1 parent d5f335b commit 83e3d69
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,18 @@ package io.github.sds100.keymapper.mappings.keymaps.trigger
import io.github.sds100.keymapper.data.entities.AssistantTriggerKeyEntity
import io.github.sds100.keymapper.data.entities.TriggerKeyEntity
import io.github.sds100.keymapper.mappings.ClickType
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import java.util.UUID

@Serializable
data class AssistantTriggerKey(
override val uid: String = UUID.randomUUID().toString(),

// A custom JSON name is required because this conflicts with the built-in "type" property.
@SerialName("assistantType")
val type: AssistantTriggerType,

override val clickType: ClickType,
) : TriggerKey() {

Expand Down

0 comments on commit 83e3d69

Please sign in to comment.