MastodonAdminIpBlock class
Admin-level IP block information.
Information about a blocked IP address range.
- Annotations
-
- @JsonSerializable(fieldRename: FieldRename.snake)
Constructors
- MastodonAdminIpBlock({required String id, required String ip, required MastodonAdminIpBlockSeverity severity, String? comment, DateTime? createdAt, DateTime? expiresAt})
-
const
-
MastodonAdminIpBlock.fromJson(Map<
String, dynamic> json) -
factory
Properties
- comment → String?
-
Reason for the block.
final
- createdAt → DateTime?
-
Timestamp when the block was created.
final
- expiresAt → DateTime?
-
Expiration timestamp of the block (null if permanent).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Database ID of the IP block.
final
- ip → String
-
Blocked IP address range (CIDR notation).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- severity → MastodonAdminIpBlockSeverity
-
Severity level of the block.
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