MastodonAdminIpBlockUpdateRequest class
Request for updating an admin IP block.
Request body for PUT /api/v1/admin/ip_blocks/:id.
All fields are optional (partial update).
Constructors
- MastodonAdminIpBlockUpdateRequest({String? ip, String? severity, String? comment, int? expiresIn})
-
Creates a MastodonAdminIpBlockUpdateRequest.
const
Properties
- comment → String?
-
Reason for the block.
final
- expiresIn → int?
-
Expiration time in seconds. Omit for permanent.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- ip → String?
-
IP address range to block (CIDR notation).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- severity → String?
-
Severity level (
sign_up_requires_approval/sign_up_block/no_access).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