toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  return {
    'eventName': eventName,
    'eventMoment': eventMoment,
    'revenue': revenue,
    'customData': customData != null ? json.encode(customData) : null,
  };
}