toJson method
转换为JSON
Implementation
@override
Map<String, dynamic> toJson() => {
'eventId': eventId,
'timestamp': timestamp.millisecondsSinceEpoch,
'type': type.toString(),
'sessionId': sessionId,
'eventName': eventName,
'buttonText': buttonText,
'currentPage': currentPage,
'parameters': parameters,
'widgetType': widgetType,
'widgetKey': widgetKey,
'position': position,
'metadata': metadata,
};