Message class
Represents a Message object as is, directly provided from mailtm API
- Annotations
-
- @freezed
Constructors
-
Message({required String id, required String accountId, required String msgid, @Default('') String intro, required Map<
String, String> from, required List<Map< to, @Default([]) List<String, String> >String> cc, @Default([]) List<String> bcc, @Default('') String subject, required bool seen, @Default(false) bool flagged, required bool isDeleted, @Default({}) Map<String, dynamic> verifications, @Default(false) bool retention, DateTime? retentionDate, @Default('') String text, @Default([]) List<String> html, required bool hasAttachments, @Default([]) List<Attachment> attachments, required int size, required String downloadUrl, required DateTime createdAt, required DateTime updatedAt}) -
Message constructor.
MUST NOT
be used manually Use MailTm andAuthorizedUser
constfactory -
Message.fromJson(Map<
String, Object?> json) -
Message jsonizer. Allows freezed to add a from/toJson
factory
Properties
- accountId → String
-
The unique identifier of the account.
no setterinherited
-
attachments
→ List<
Attachment> -
List of the message.
no setterinherited
-
bcc
→ List<
String> -
The blind carbon copy recipients of the message.
no setterinherited
-
cc
→ List<
String> -
The carbon copy recipients of the message.
no setterinherited
-
copyWith
→ $MessageCopyWith<
Message> -
no setterinherited
- createdAt → DateTime
-
The date of the message creation.
no setterinherited
- downloadUrl → String
-
The downloadUrl of the message.
no setterinherited
- flagged → bool
-
Whether the message has been flagged.
no setterinherited
-
from
→ Map<
String, String> -
The sender of the message.
no setterinherited
- hasAttachments → bool
-
Whether the message has attachments.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
html
→ List<
String> -
The HTML of the message.
no setterinherited
- id → String
-
The unique identifier of the message (MailTm DB).
no setterinherited
- intro → String
-
The introduction of the message.
no setterinherited
- isDeleted → bool
-
Whether the message has been deleted.
no setterinherited
- msgid → String
-
The unique identifier of the message
(Global, both the receiver service and MailTm will know this).
no setterinherited
- retention → bool
-
If the message has arrived
no setterinherited
- retentionDate → DateTime?
-
The date of the message retention.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- seen → bool
-
Whether the message has been seen.
no setterinherited
- size → int
-
The size of the message.
no setterinherited
- subject → String
-
The subject of the message.
no setterinherited
- text → String
-
The text of the message.
no setterinherited
-
to
→ List<
Map< String, String> > -
The recipients of the message.
no setterinherited
- updatedAt → DateTime
-
When the message was seen
no setterinherited
-
verifications
→ Map<
String, dynamic> -
The verifications of the message.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited