AdminDomainBlock class
Represents a domain limited from federating.
- Annotations
-
- @freezed
Constructors
- AdminDomainBlock({@JsonKey(name: 'id') String? id, @JsonKey(name: 'domain') String? domain, @JsonKey(name: 'digest') String? digest, @JsonKey(name: 'created_at') DateTime? createdAt, @JsonKey(name: 'severity') AdminDomainBlockSeverity? severity, @JsonKey(name: 'reject_media') bool? rejectMedia, @JsonKey(name: 'reject_reports') bool? rejectReports, @JsonKey(name: 'private_comment') String? privateComment, @JsonKey(name: 'public_comment') String? publicComment, @JsonKey(name: 'obfuscate') bool? obfuscate})
-
constfactory
-
AdminDomainBlock.fromJson(Map<
String, dynamic> json) -
factory
Properties
-
copyWith
→ $AdminDomainBlockCopyWith<
AdminDomainBlock> -
Create a copy of AdminDomainBlock
with the given fields replaced by the non-null parameter values.
no setterinherited
- createdAt → DateTime?
-
When the domain was blocked from federating.
no setterinherited
- digest → String?
-
The sha256 hex digest of the domain that is not allowed to federated.
no setterinherited
- domain → String?
-
The domain that is not allowed to federate.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String?
-
The ID of the DomainBlock in the database.
no setterinherited
- obfuscate → bool?
-
Whether to obfuscate public displays of this domain block.
no setterinherited
- privateComment → String?
-
no setterinherited
- publicComment → String?
-
no setterinherited
- rejectMedia → bool?
-
Whether to reject media attachments from this domain.
no setterinherited
- rejectReports → bool?
-
Whether to reject reports from this domain.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- severity → AdminDomainBlockSeverity?
-
The policy to be applied by this domain block.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this AdminDomainBlock to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited