MastodonAdminIpBlockCreateRequest class

Request for creating an admin IP block.

Request body for POST /api/v1/admin/ip_blocks. severity is required per the official documentation.

Constructors

MastodonAdminIpBlockCreateRequest({required String severity, String? ip, String? comment, int? expiresIn})
Creates a MastodonAdminIpBlockCreateRequest.
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