BlockedDomain constructor

const BlockedDomain({
  1. @JsonKey(name: 'domain') required String name,
  2. @JsonKey(name: 'digest') required String sha256digest,
  3. required BlockSeverity severity,
  4. @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;