NotificationSetting constructor
NotificationSetting({
- NotificationType? type,
- bool? global,
- AccountId? accountId,
- UserId? userId,
- 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;
}