fromMap static method
Gets a possible WebResourceError instance from a Map value.
Implementation
static WebResourceError? fromMap(Map<String, dynamic>? map) {
if (map == null) {
return null;
}
final instance = WebResourceError(
description: map['description'],
type: WebResourceErrorType.fromNativeValue(map['type'])!,
);
return instance;
}