toJson method
Implementation
Map<String, dynamic> toJson() {
final defaultSubstitutions = this.defaultSubstitutions;
final htmlPart = this.htmlPart;
final recommenderId = this.recommenderId;
final subject = this.subject;
final templateDescription = this.templateDescription;
final textPart = this.textPart;
final tags = this.tags;
return {
if (defaultSubstitutions != null)
'DefaultSubstitutions': defaultSubstitutions,
if (htmlPart != null) 'HtmlPart': htmlPart,
if (recommenderId != null) 'RecommenderId': recommenderId,
if (subject != null) 'Subject': subject,
if (templateDescription != null)
'TemplateDescription': templateDescription,
if (textPart != null) 'TextPart': textPart,
if (tags != null) 'tags': tags,
};
}