MastodonReport class
Report entity.
Model representing report information referenced by admin notifications and grouped notifications.
- Annotations
-
- @JsonSerializable(fieldRename: FieldRename.snake)
Constructors
-
MastodonReport({required String id, required bool actionTaken, DateTime? actionTakenAt, required String category, required String comment, required bool forwarded, DateTime? createdAt, List<
String> ? statusIds, List<String> ? ruleIds, MastodonAccount? targetAccount}) -
const
-
MastodonReport.fromJson(Map<
String, dynamic> json) -
factory
Properties
- actionTaken → bool
-
Whether action has been taken.
final
- actionTakenAt → DateTime?
-
Timestamp when action was taken.
final
- category → String
-
Category of the report (
spam/legal/violation/other).final - comment → String
-
Comment added by the reporter.
final
- createdAt → DateTime?
-
Timestamp when the report was created.
final
- forwarded → bool
-
Whether the report was forwarded to a remote server.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
ID of the report.
final
-
ruleIds
→ List<
String> ? -
List of rule IDs associated with the report.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
statusIds
→ List<
String> ? -
List of status IDs associated with the report.
final
- targetAccount → MastodonAccount?
-
Target account of the report.
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