fromMap static method

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

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;
}