NotificationSetting constructor

NotificationSetting({
  1. NotificationType? type,
  2. bool? global,
  3. AccountId? accountId,
  4. UserId? userId,
  5. Iterable<NotificationRule>? rules,
})

Implementation

factory NotificationSetting({
  $0.NotificationType? type,
  $core.bool? global,
  $0.AccountId? accountId,
  $0.UserId? userId,
  $core.Iterable<NotificationRule>? rules,
}) {
  final result = create();
  if (type != null) result.type = type;
  if (global != null) result.global = global;
  if (accountId != null) result.accountId = accountId;
  if (userId != null) result.userId = userId;
  if (rules != null) result.rules.addAll(rules);
  return result;
}