Fix MarkAsSpam not displayed when edit rule filter

This commit is contained in:
dab246
2024-08-26 10:12:48 +07:00
committed by Dat H. Pham
parent 150b4607d5
commit b67037a30b
6 changed files with 164 additions and 115 deletions
+9 -6
View File
@@ -4,27 +4,30 @@ import 'package:rule_filter/rule_filter/rule_append_in.dart';
part 'rule_action.g.dart';
@JsonSerializable(explicitToJson: true)
@JsonSerializable(explicitToJson: true, includeIfNull: false)
class RuleAction with EquatableMixin {
final RuleAppendIn appendIn;
@JsonKey(includeIfNull: false)
final bool? markAsSeen;
@JsonKey(includeIfNull: false)
final bool? markAsImportant;
@JsonKey(includeIfNull: false)
final bool? reject;
final List<String>? withKeywords;
RuleAction({
required this.appendIn,
this.markAsSeen,
this.markAsImportant,
this.reject,
this.withKeywords,
});
@override
List<Object?> get props => [
appendIn,
];
appendIn,
markAsSeen,
markAsImportant,
reject,
withKeywords,
];
factory RuleAction.fromJson(Map<String, dynamic> json) =>
_$RuleActionFromJson(json);