sendEvent method

Future<void> sendEvent(
  1. Map<String, dynamic> eventDetails
)

Implementation

Future<void> sendEvent(Map<String, dynamic> eventDetails) async {
  final replacedEventDetails =
       replaceKeys(eventDetails, _eventMapping, _eventRequiredCol);
  var map = new Map<String, dynamic>();
  map["data"] = jsonEncode(replacedEventDetails);
  map["headers"] = '{"Authorization": "Bearer $_jwtToken"}';
  _sendEventRequest("$baseUrl/api/v1/user/event", map);
}