toJson method

Map<String, dynamic> toJson()

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,
  };
}