fromMap static method

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

Gets a possible WebResourceRequest instance from a Map value.

Implementation

static WebResourceRequest? fromMap(Map<String, dynamic>? map) {
  if (map == null) {
    return null;
  }
  final instance = WebResourceRequest(
    hasGesture: map['hasGesture'],
    headers: map['headers']?.cast<String, String>(),
    isForMainFrame: map['isForMainFrame'],
    isRedirect: map['isRedirect'],
    method: map['method'],
    url: WebUri(map['url']),
  );
  return instance;
}