MessageEvent.fromMap constructor

MessageEvent.fromMap(
  1. String command,
  2. Map<String, dynamic> json
)

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;