toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final htmlPart = this.htmlPart;
  final subject = this.subject;
  final textPart = this.textPart;
  return {
    if (htmlPart != null) 'HtmlPart': htmlPart,
    if (subject != null) 'Subject': subject,
    if (textPart != null) 'TextPart': textPart,
  };
}