fix: update JSON serialization for ActionButtonType and improve type safety

This commit is contained in:
idubnori
2025-12-09 15:53:18 +09:00
parent 2d4e901c55
commit f874c12bee
2 changed files with 11 additions and 4 deletions

View File

@@ -67,7 +67,7 @@ enum ActionButtonType {
unstack,
likeActivity;
dynamic toJson() => name;
String toJson() => name;
bool shouldShow(ActionButtonContext context) {
return switch (this) {