toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      'action': eventName,
      'revenue': revenue,
      'data': customData,
      'created_at': eventMoment
    };