toJson method
Implementation
Map<String, Object?> toJson() {
var description = this.description;
var id = this.id;
var name = this.name;
var templateEvent = this.templateEvent;
final json = <String, Object?>{};
if (description != null) {
json[r'description'] = description;
}
if (id != null) {
json[r'id'] = id;
}
if (name != null) {
json[r'name'] = name;
}
if (templateEvent != null) {
json[r'templateEvent'] = templateEvent.toJson();
}
return json;
}