TestEmailProviderSMTPRequest constructor

TestEmailProviderSMTPRequest({
  1. String? senderAddress,
  2. String? senderName,
  3. bool? tls,
  4. String? host,
  5. String? user,
  6. String? password,
  7. String? receiverAddress,
  8. String? id,
  9. SMTPNoAuth? none,
  10. SMTPPlainAuth? plain,
  11. SMTPXOAuth2Auth? xoauth2,
})

Implementation

factory TestEmailProviderSMTPRequest({
  $core.String? senderAddress,
  $core.String? senderName,
  $core.bool? tls,
  $core.String? host,
  $core.String? user,
  $core.String? password,
  $core.String? receiverAddress,
  $core.String? id,
  SMTPNoAuth? none,
  SMTPPlainAuth? plain,
  SMTPXOAuth2Auth? xoauth2,
}) {
  final result = create();
  if (senderAddress != null) result.senderAddress = senderAddress;
  if (senderName != null) result.senderName = senderName;
  if (tls != null) result.tls = tls;
  if (host != null) result.host = host;
  if (user != null) result.user = user;
  if (password != null) result.password = password;
  if (receiverAddress != null) result.receiverAddress = receiverAddress;
  if (id != null) result.id = id;
  if (none != null) result.none = none;
  if (plain != null) result.plain = plain;
  if (xoauth2 != null) result.xoauth2 = xoauth2;
  return result;
}