fromMap static method

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

Gets a possible NavigationResponse instance from a Map value.

Implementation

static NavigationResponse? fromMap(Map<String, dynamic>? map) {
  if (map == null) {
    return null;
  }
  final instance = NavigationResponse(
    canShowMIMEType: map['canShowMIMEType'],
    isForMainFrame: map['isForMainFrame'],
    response: URLResponse.fromMap(map['response']?.cast<String, dynamic>()),
  );
  return instance;
}