toJson method
Implementation
Map<String, dynamic> toJson() {
final body = this.body;
final fromAddress = this.fromAddress;
final htmlBody = this.htmlBody;
final title = this.title;
return {
if (body != null) 'Body': body,
if (fromAddress != null) 'FromAddress': fromAddress,
if (htmlBody != null) 'HtmlBody': htmlBody,
if (title != null) 'Title': title,
};
}