MastodonDomainBlock class
Information about a domain blocked by the instance.
GET /api/v1/instance/domain_blocks
- Annotations
-
- @JsonSerializable(fieldRename: FieldRename.snake)
Constructors
- MastodonDomainBlock({required String domain, required String digest, required MastodonDomainBlockSeverity severity, String? comment})
-
const
-
MastodonDomainBlock.fromJson(Map<
String, dynamic> json) -
factory
Properties
- comment → String?
-
Reason for the domain block (optional).
final
- digest → String
-
SHA256 hash digest of the domain string.
final
- domain → String
-
Domain name that is blocked.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- severity → MastodonDomainBlockSeverity
-
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