toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'id'] = this.id;
json[r'userId'] = this.userId;
json[r'inboxId'] = this.inboxId;
if (this.domainId != null) {
json[r'domainId'] = this.domainId;
} else {
json[r'domainId'] = null;
}
if (this.to != null) {
json[r'to'] = this.to;
} else {
json[r'to'] = null;
}
if (this.from != null) {
json[r'from'] = this.from;
} else {
json[r'from'] = null;
}
if (this.replyTo != null) {
json[r'replyTo'] = this.replyTo;
} else {
json[r'replyTo'] = null;
}
if (this.cc != null) {
json[r'cc'] = this.cc;
} else {
json[r'cc'] = null;
}
if (this.bcc != null) {
json[r'bcc'] = this.bcc;
} else {
json[r'bcc'] = null;
}
if (this.attachments != null) {
json[r'attachments'] = this.attachments;
} else {
json[r'attachments'] = null;
}
if (this.subject != null) {
json[r'subject'] = this.subject;
} else {
json[r'subject'] = null;
}
if (this.bodyMD5Hash != null) {
json[r'bodyMD5Hash'] = this.bodyMD5Hash;
} else {
json[r'bodyMD5Hash'] = null;
}
if (this.body != null) {
json[r'body'] = this.body;
} else {
json[r'body'] = null;
}
if (this.toContacts != null) {
json[r'toContacts'] = this.toContacts;
} else {
json[r'toContacts'] = null;
}
if (this.toGroup != null) {
json[r'toGroup'] = this.toGroup;
} else {
json[r'toGroup'] = null;
}
if (this.charset != null) {
json[r'charset'] = this.charset;
} else {
json[r'charset'] = null;
}
if (this.isHTML != null) {
json[r'isHTML'] = this.isHTML;
} else {
json[r'isHTML'] = null;
}
json[r'sentAt'] = this.sentAt.toUtc().toIso8601String();
if (this.pixelIds != null) {
json[r'pixelIds'] = this.pixelIds;
} else {
json[r'pixelIds'] = null;
}
if (this.messageId != null) {
json[r'messageId'] = this.messageId;
} else {
json[r'messageId'] = null;
}
if (this.messageIds != null) {
json[r'messageIds'] = this.messageIds;
} else {
json[r'messageIds'] = null;
}
if (this.virtualSend != null) {
json[r'virtualSend'] = this.virtualSend;
} else {
json[r'virtualSend'] = null;
}
if (this.templateId != null) {
json[r'templateId'] = this.templateId;
} else {
json[r'templateId'] = null;
}
if (this.templateVariables != null) {
json[r'templateVariables'] = this.templateVariables;
} else {
json[r'templateVariables'] = null;
}
if (this.html != null) {
json[r'html'] = this.html;
} else {
json[r'html'] = null;
}
return json;
}