toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.accountId != null) {
json[r'accountId'] = this.accountId;
} else {
json[r'accountId'] = null;
}
json[r'to'] = this.to;
json[r'cc'] = this.cc;
json[r'bcc'] = this.bcc;
if (this.subject != null) {
json[r'subject'] = this.subject;
} else {
json[r'subject'] = null;
}
if (this.body != null) {
json[r'body'] = this.body;
} else {
json[r'body'] = null;
}
if (this.html != null) {
json[r'html'] = this.html;
} else {
json[r'html'] = null;
}
json[r'attachments'] = this.attachments;
if (this.threadId != null) {
json[r'threadId'] = this.threadId;
} else {
json[r'threadId'] = null;
}
if (this.inReplyTo != null) {
json[r'inReplyTo'] = this.inReplyTo;
} else {
json[r'inReplyTo'] = null;
}
json[r'references'] = this.references;
return json;
}