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;
json[r'body'] = this.body;
if (this.html != null) {
json[r'html'] = this.html;
} else {
json[r'html'] = null;
}
json[r'attachments'] = this.attachments;
return json;
}