ModEventEmail constructor

  1. @JsonSerializable.new(includeIfNull: false)
const ModEventEmail({
  1. @Default.new('tools.ozone.moderation.defs#modEventEmail') String $type,
  2. required String subjectLine,
  3. String? content,
  4. String? comment,
  5. List<String>? policies,
  6. String? severityLevel,
  7. int? strikeCount,
  8. DateTime? strikeExpiresAt,
  9. bool? isDelivered,
  10. Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory ModEventEmail({
  @Default('tools.ozone.moderation.defs#modEventEmail') String $type,

  /// The subject line of the email sent to the user.
  required String subjectLine,

  /// The content of the email sent to the user.
  String? content,

  /// Additional comment about the outgoing comm.
  String? comment,
  List<String>? policies,

  /// Severity level of the violation. Normally 'sev-1' that adds strike on repeat offense
  String? severityLevel,

  /// Number of strikes to assign to the user for this violation. Normally 0 as an indicator of a warning and only added as a strike on a repeat offense.
  int? strikeCount,

  /// When the strike should expire. If not provided, the strike never expires.
  DateTime? strikeExpiresAt,

  /// Indicates whether the email was successfully delivered to the user's inbox.
  bool? isDelivered,

  Map<String, dynamic>? $unknown,
}) = _ModEventEmail;