fromMap static method

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

Gets a possible IOSWKNavigationResponse instance from a Map value.

Implementation

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