MastodonAdminAccountActionRequest class
Request for performing an admin account action.
Request body for POST /api/v1/admin/accounts/:id/action.
Constructors
- MastodonAdminAccountActionRequest({required String type, String? reportId, String? warningPresetId, String? text, bool? sendEmailNotification})
-
Creates a MastodonAdminAccountActionRequest.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- reportId → String?
-
ID of the associated report.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sendEmailNotification → bool?
-
Whether to send an email notification to the user.
final
- text → String?
-
Additional explanation text.
final
- type → String
-
Type of action (
none/sensitive/disable/silence/suspend).final - warningPresetId → String?
-
ID of the warning preset.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts to a JSON map for the request body.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited