File tree Expand file tree Collapse file tree 2 files changed +19
-2
lines changed
packages/client_search/lib/src/model Expand file tree Collapse file tree 2 files changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ final class Rule {
1818 this .description,
1919 this .enabled,
2020 this .validity,
21+ this .tags,
22+ this .scope,
2123 });
2224
2325 /// Unique identifier of a rule object.
@@ -43,6 +45,12 @@ final class Rule {
4345 @JsonKey (name: r'validity' )
4446 final List <TimeRange >? validity;
4547
48+ @JsonKey (name: r'tags' )
49+ final List <String >? tags;
50+
51+ @JsonKey (name: r'scope' )
52+ final String ? scope;
53+
4654 @override
4755 bool operator == (Object other) =>
4856 identical (this , other) ||
@@ -52,7 +60,9 @@ final class Rule {
5260 other.consequence == consequence &&
5361 other.description == description &&
5462 other.enabled == enabled &&
55- other.validity == validity;
63+ other.validity == validity &&
64+ other.tags == tags &&
65+ other.scope == scope;
5666
5767 @override
5868 int get hashCode =>
@@ -61,7 +71,9 @@ final class Rule {
6171 consequence.hashCode +
6272 description.hashCode +
6373 enabled.hashCode +
64- validity.hashCode;
74+ validity.hashCode +
75+ tags.hashCode +
76+ scope.hashCode;
6577
6678 factory Rule .fromJson (Map <String , dynamic > json) => _$RuleFromJson (json);
6779
You can’t perform that action at this time.
0 commit comments