fromMap static method

WebViewAssetLoader? fromMap(
  1. Map<String, dynamic>? map
)

Gets a possible WebViewAssetLoader instance from a Map value.

Implementation

static WebViewAssetLoader? fromMap(Map<String, dynamic>? map) {
  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;
}