fromMap static method

WebViewAssetLoader? fromMap(
  1. Map<String, dynamic>? map, {
  2. EnumMethod? enumMethod,
})

Gets a possible WebViewAssetLoader instance from a Map value.

Implementation

static WebViewAssetLoader? fromMap(
  Map<String, dynamic>? map, {
  EnumMethod? enumMethod,
}) {
  if (map == null) {
    return null;
  }
  final instance = WebViewAssetLoader(
    domain: map['domain'],
    httpAllowed: map['httpAllowed'],
    pathHandlers: map['pathHandlers'] != null
        ? List<PlatformPathHandler>.from(map['pathHandlers'].map((e) => e))
        : null,
  );
  return instance;
}