WebhookNewEmailPayload constructor

WebhookNewEmailPayload({
  1. required String messageId,
  2. required String webhookId,
  3. required WebhookNewEmailPayloadEventNameEnum eventName,
  4. String? webhookName,
  5. required String inboxId,
  6. String? domainId,
  7. required String emailId,
  8. required DateTime createdAt,
  9. List<String> to = const [],
  10. required String from,
  11. List<String> cc = const [],
  12. List<String> bcc = const [],
  13. String? subject,
  14. List<AttachmentMetaData> attachmentMetaDatas = const [],
})

Returns a new WebhookNewEmailPayload instance.

Implementation

WebhookNewEmailPayload({
  required this.messageId,
  required this.webhookId,
  required this.eventName,
  this.webhookName,
  required this.inboxId,
  this.domainId,
  required this.emailId,
  required this.createdAt,
  this.to = const [],
  required this.from,
  this.cc = const [],
  this.bcc = const [],
  this.subject,
  this.attachmentMetaDatas = const [],
});