NotificationRule constructor

NotificationRule({
  1. NotificationRuleId? id,
  2. NotificationChannelId? channelId,
  3. Notification_NotificationCategory? matchCategory,
  4. bool? allwaysNotify,
  5. int? everyNTimes,
  6. int? everyNDays,
})

Implementation

factory NotificationRule({
  $0.NotificationRuleId? id,
  $0.NotificationChannelId? channelId,
  Notification_NotificationCategory? matchCategory,
  $core.bool? allwaysNotify,
  $core.int? everyNTimes,
  $core.int? everyNDays,
}) {
  final result = create();
  if (id != null) result.id = id;
  if (channelId != null) result.channelId = channelId;
  if (matchCategory != null) result.matchCategory = matchCategory;
  if (allwaysNotify != null) result.allwaysNotify = allwaysNotify;
  if (everyNTimes != null) result.everyNTimes = everyNTimes;
  if (everyNDays != null) result.everyNDays = everyNDays;
  return result;
}