fromMap static method

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

Gets a possible InAppWebViewHitTestResult instance from a Map value.

Implementation

static InAppWebViewHitTestResult? fromMap(Map<String, dynamic>? map) {
  if (map == null) {
    return null;
  }
  final instance = InAppWebViewHitTestResult(
    extra: map['extra'],
    type: InAppWebViewHitTestResultType.fromNativeValue(map['type']),
  );
  return instance;
}