fromMap static method
- Map<
String, dynamic> ? map, { - EnumMethod? enumMethod,
Gets a possible IOSWKNavigationResponse instance from a Map value.
Implementation
static IOSWKNavigationResponse? fromMap(
Map<String, dynamic>? map, {
EnumMethod? enumMethod,
}) {
if (map == null) {
return null;
}
final instance = IOSWKNavigationResponse(
canShowMIMEType: map['canShowMIMEType'],
isForMainFrame: map['isForMainFrame'],
response: IOSURLResponse.fromMap(
map['response']?.cast<String, dynamic>(),
enumMethod: enumMethod,
),
);
return instance;
}