Email constructor
Email({
- required String id,
- required String userId,
- required String inboxId,
- String? domainId,
- List<
String> to = const [], - String? from,
- Sender? sender,
- EmailRecipients? recipients,
- String? replyTo,
- List<
String> ? cc = const [], - List<
String> ? bcc = const [], - Map<
String, String> ? headers = const {}, - Map<
String, List< ? headersMap = const {},String> > - List<
String> ? attachments = const [], - String? subject,
- String? body,
- String? bodyExcerpt,
- String? bodyMD5Hash,
- bool? isHTML,
- String? charset,
- EmailAnalysis? analysis,
- required DateTime createdAt,
- required DateTime updatedAt,
- required bool read,
- required bool teamAccess,
- 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,
});