MastodonAdminReport class
Admin-level report information.
Detailed report information returned by the Admin API. Includes admin-specific details such as the assigned moderator and resolution status, in addition to standard report information.
- Annotations
-
- @JsonSerializable(fieldRename: FieldRename.snake)
Constructors
-
MastodonAdminReport({required String id, required bool actionTaken, DateTime? actionTakenAt, required String category, required String comment, required bool forwarded, DateTime? createdAt, DateTime? updatedAt, MastodonAdminAccount? account, MastodonAdminAccount? targetAccount, MastodonAdminAccount? assignedAccount, MastodonAdminAccount? actionTakenByAccount, List<
MastodonStatus> statuses = const [], List<MastodonInstanceRule> rules = const []}) -
const
-
MastodonAdminReport.fromJson(Map<
String, dynamic> json) -
factory
Properties
- account → MastodonAdminAccount?
-
Account of the reporter (admin-level information).
final
- actionTaken → bool
-
Whether action has been taken.
final
- actionTakenAt → DateTime?
-
Timestamp when action was taken.
final
- actionTakenByAccount → MastodonAdminAccount?
-
Moderator who handled the report.
final
- assignedAccount → MastodonAdminAccount?
-
Moderator assigned to investigate.
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 instance.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Database ID of the report.
final
-
rules
→ List<
MastodonInstanceRule> -
List of rules that were violated.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
statuses
→ List<
MastodonStatus> -
List of statuses associated with the report.
final
- targetAccount → MastodonAdminAccount?
-
Target account of the report (admin-level information).
final
- updatedAt → DateTime?
-
Timestamp when the report was last updated.
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