getBody method
Implementation
@override
Map<String, dynamic> getBody(Map<String, dynamic> body) {
final Map<String, dynamic> map = {
"name": eventName,
"type": eventType.name,
};
if (eventData != null) {
map.addAll({
'data': eventData,
});
}
return map;
}