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