diff --git a/core/src/main/java/io/xpipe/core/dialog/Choice.java b/core/src/main/java/io/xpipe/core/dialog/Choice.java index 55d59c5a7..6fd8ed062 100644 --- a/core/src/main/java/io/xpipe/core/dialog/Choice.java +++ b/core/src/main/java/io/xpipe/core/dialog/Choice.java @@ -1,11 +1,9 @@ package io.xpipe.core.dialog; import com.fasterxml.jackson.annotation.JsonCreator; -import lombok.AllArgsConstructor; import lombok.Value; @Value -@AllArgsConstructor(onConstructor=@__({@JsonCreator})) public class Choice { /** @@ -41,4 +39,11 @@ public class Choice { this.description = description; this.disabled = false; } + + @JsonCreator + public Choice(Character character, String description, boolean disabled) { + this.character = character; + this.description = description; + this.disabled = disabled; + } }