getBody method

  1. @override
Map<String, dynamic> getBody(
  1. Map<String, dynamic> body
)
override

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;
}