toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.body != null) {
json[r'body'] = this.body;
} else {
json[r'body'] = null;
}
if (this.channel != null) {
json[r'channel'] = this.channel;
} else {
json[r'channel'] = null;
}
if (this.event != null) {
json[r'event'] = this.event;
} else {
json[r'event'] = null;
}
if (this.provider != null) {
json[r'provider'] = this.provider;
} else {
json[r'provider'] = null;
}
if (this.subject != null) {
json[r'subject'] = this.subject;
} else {
json[r'subject'] = null;
}
if (this.sync_ != null) {
json[r'sync'] = this.sync_;
} else {
json[r'sync'] = null;
}
if (this.templateId != null) {
json[r'template_id'] = this.templateId;
} else {
json[r'template_id'] = null;
}
if (this.templateVars != null) {
json[r'template_vars'] = this.templateVars;
} else {
json[r'template_vars'] = null;
}
json[r'to'] = this.to;
return json;
}