fromMap static method

InAppBrowserClassOptions fromMap(
  1. Map<String, dynamic> options
)

Implementation

static InAppBrowserClassOptions fromMap(Map<String, dynamic> options) {
  InAppBrowserClassOptions inAppBrowserClassOptions =
      InAppBrowserClassOptions();

  inAppBrowserClassOptions.crossPlatform =
      InAppBrowserOptions.fromMap(options);
  inAppBrowserClassOptions.inAppWebViewGroupOptions =
      InAppWebViewGroupOptions();
  inAppBrowserClassOptions.inAppWebViewGroupOptions.crossPlatform =
      InAppWebViewOptions.fromMap(options);
  if (Util.isAndroid) {
    inAppBrowserClassOptions.android =
        AndroidInAppBrowserOptions.fromMap(options);
    inAppBrowserClassOptions.inAppWebViewGroupOptions.android =
        AndroidInAppWebViewOptions.fromMap(options);
  } else if (Util.isIOS) {
    inAppBrowserClassOptions.ios = IOSInAppBrowserOptions.fromMap(options);
    inAppBrowserClassOptions.inAppWebViewGroupOptions.ios =
        IOSInAppWebViewOptions.fromMap(options);
  }

  return inAppBrowserClassOptions;
}