ModEventEmail constructor
- @JsonSerializable.new(includeIfNull: false)
const
ModEventEmail(
{ - @Default.new('tools.ozone.moderation.defs#modEventEmail') String $type,
- required String subjectLine,
- String? content,
- List<String>? policies,
- String? severityLevel,
- int? strikeCount,
- DateTime? strikeExpiresAt,
- bool? isDelivered,
- 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;