Email constructor

Email({
  1. required String id,
  2. required String userId,
  3. required String inboxId,
  4. String? domainId,
  5. List<String> to = const [],
  6. String? from,
  7. Sender? sender,
  8. EmailRecipients? recipients,
  9. String? replyTo,
  10. List<String>? cc = const [],
  11. List<String>? bcc = const [],
  12. Map<String, String>? headers = const {},
  13. Map<String, List<String>>? headersMap = const {},
  14. List<String>? attachments = const [],
  15. String? subject,
  16. String? body,
  17. String? bodyExcerpt,
  18. String? bodyMD5Hash,
  19. bool? isHTML,
  20. String? charset,
  21. EmailAnalysis? analysis,
  22. required DateTime createdAt,
  23. required DateTime updatedAt,
  24. required bool read,
  25. required bool teamAccess,
  26. bool? html,
})

Returns a new Email instance.

Implementation

Email({
  required this.id,
  required this.userId,
  required this.inboxId,
  this.domainId,
  this.to = const [],
  this.from,
  this.sender,
  this.recipients,
  this.replyTo,
  this.cc = const [],
  this.bcc = const [],
  this.headers = const {},
  this.headersMap = const {},
  this.attachments = const [],
  this.subject,
  this.body,
  this.bodyExcerpt,
  this.bodyMD5Hash,
  this.isHTML,
  this.charset,
  this.analysis,
  required this.createdAt,
  required this.updatedAt,
  required this.read,
  required this.teamAccess,
  this.html,
});