toJson method
Implementation
Map<String, dynamic> toJson() {
final subject = this.subject;
final htmlBody = this.htmlBody;
final textBody = this.textBody;
return {
'Subject': subject,
if (htmlBody != null) 'HtmlBody': htmlBody,
if (textBody != null) 'TextBody': textBody,
};
}