MastodonAdminDomainBlockRequest class
Request for creating or updating an admin domain block.
Request body for POST /api/v1/admin/domain_blocks and
PUT /api/v1/admin/domain_blocks/:id.
Constructors
- MastodonAdminDomainBlockRequest({String? domain, String? severity, bool? rejectMedia, bool? rejectReports, String? privateComment, String? publicComment, bool? obfuscate})
-
Creates a MastodonAdminDomainBlockRequest.
const
Properties
- domain → String?
-
Domain to block (required when creating).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- obfuscate → bool?
-
Whether to obfuscate the domain name in public displays.
final
- privateComment → String?
-
Private comment for administrators.
final
- publicComment → String?
-
Public-facing comment.
final
- rejectMedia → bool?
-
Whether to reject media attachments.
final
- rejectReports → bool?
-
Whether to reject reports.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- severity → String?
-
Severity level (
silence/suspend/noop). Default:silence.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