MessageEvent.fromMap constructor
Implementation
MessageEvent.fromMap(String command, Map<String, dynamic> json)
: webViewReader =
command == 'trackWebViewEvent' ? WebViewReader.fromMap(json) : null,
selfDescribing = command == 'trackSelfDescribingEvent'
? SelfDescribing.fromMap(json)
: null,
structured =
command == 'trackStructEvent' ? Structured.fromMap(json) : null,
screenView =
command == 'trackScreenView' ? ScreenView.fromMap(json) : null,
pageViewEvent =
command == 'trackPageView' ? PageViewEvent.fromMap(json) : null;