toDictionary method

Map<String, dynamic> toDictionary()

Implementation

Map<String, dynamic> toDictionary() {
  var detailsDictionary = Map<String, dynamic>.from(eventDetails);

  return {
    VideoEventJSONKeys.eventName.name: eventName,
    VideoEventJSONKeys.eventTime.name: eventTime,
    VideoEventJSONKeys.eventDetails.name: detailsDictionary,
  };
}