NotificationPreferences constructor

const NotificationPreferences({
  1. @Default.new('tools.ozone.inbox.defs#notificationPreferences') String $type,
  2. required bool reports,
  3. required bool account,
  4. required bool labels,
  5. Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory NotificationPreferences({
  @Default('tools.ozone.inbox.defs#notificationPreferences') String $type,

  /// Notify about outcomes of reports filed by the account (reportResolved and reportReopened).
  required bool reports,

  /// Notify about moderation actions against the account or its content, action reversals, appeal outcomes, and standing changes. Label application and removal are controlled by labels.
  required bool account,

  /// Notify when labels are applied to or removed from the account or its content (labelApplied and labelRemoved actions).
  required bool labels,

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