CreateDefaultNotificationRequest constructor

CreateDefaultNotificationRequest({
  1. AccountId? accountId,
  2. StringValue? title,
  3. StringValue? body,
  4. StoredImage? image,
  5. Iterable<CreateDefaultNotificationRequest_FactoryNotificationChannels>? channels,
  6. StringValue? emailTemplateId,
})

Implementation

factory CreateDefaultNotificationRequest({
  $0.AccountId? accountId,
  $2.StringValue? title,
  $2.StringValue? body,
  $3.StoredImage? image,
  $core
      .Iterable<CreateDefaultNotificationRequest_FactoryNotificationChannels>?
      channels,
  $2.StringValue? emailTemplateId,
}) {
  final result = create();
  if (accountId != null) result.accountId = accountId;
  if (title != null) result.title = title;
  if (body != null) result.body = body;
  if (image != null) result.image = image;
  if (channels != null) result.channels.addAll(channels);
  if (emailTemplateId != null) result.emailTemplateId = emailTemplateId;
  return result;
}