BlockedDomain constructor
const
BlockedDomain({
- @JsonKey(name: 'domain') required String name,
- @JsonKey(name: 'digest') required String sha256digest,
- required BlockSeverity severity,
- @JsonKey(name: 'comment') String? reason,
Implementation
const factory BlockedDomain({
/// The domain which is blocked.
///
/// This may be obfuscated or partially censored.
@JsonKey(name: 'domain') required String name,
/// The SHA256 hash digest of the domain string.
@JsonKey(name: 'digest') required String sha256digest,
/// The level to which the domain is blocked.
required BlockSeverity severity,
/// An optional reason for the domain block.
@JsonKey(name: 'comment') String? reason,
}) = _BlockedDomain;