getEvent method
Extracts an event from call.arguments and converts it to a JSObject representing an Event object.
This method extracts event properties from the provided MethodCall argument and converts them into a JavaScript object representing an Event using the mapToJSObj method.
Returns:
JSObject
: A JavaScript object representing the event.
Implementation
JSObject getEvent(MethodCall call) {
var eventMap = call.arguments['event'] as Map;
return eventMap.jsify() as JSObject;
}