MastodonFilter class
Filter group (v2, Mastodon 4.0+).
Corresponds to the response from /api/v2/filters.
Performs server-side filtering and allows associating multiple keywords
and statuses with a single filter.
- Annotations
-
- @JsonSerializable(fieldRename: FieldRename.snake)
Constructors
-
MastodonFilter({required String id, required String title, required List<
String> context, required MastodonFilterAction filterAction, required List<MastodonFilterKeyword> keywords, required List<MastodonFilterStatus> statuses, DateTime? expiresAt}) -
const
-
MastodonFilter.fromJson(Map<
String, dynamic> json) -
factory
Properties
-
context
→ List<
String> -
Contexts where the filter is applied (
home,notifications,public,thread,account).final - expiresAt → DateTime?
-
Expiration timestamp.
nullif permanent.final - filterAction → MastodonFilterAction
-
Action to take on match.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Internal ID of the filter.
final
-
keywords
→ List<
MastodonFilterKeyword> -
Keywords belonging to this filter.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
statuses
→ List<
MastodonFilterStatus> -
Status filters belonging to this filter.
final
- title → String
-
Name of the filter group.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Serializes to JSON.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited