toJson method
Returns the message as a map.
Implementation
Map<String, dynamic> toJson() => {
"id": id,
"accountId": accountId,
"msgid": msgid,
"intro": intro,
"from": from,
"to": to,
"cc": cc,
"bcc": bcc,
"subject": subject,
"seen": seen,
"flagged": flagged,
"isDeleted": isDeleted,
"verifications": verifications,
"retention": retention,
"retentionDate": retentionDate.toIso8601String(),
"text": text,
"html": html,
"hasAttachments": hasAttachments,
"attachments": attachments,
"size": size,
"url": url,
"createdAt": createdAt.toIso8601String(),
"updatedAt": updatedAt.toIso8601String(),
};