toJson method

Map<String, dynamic> toJson()

Implementation

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