fromMap static method

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

Gets a possible WebViewPackageInfo instance from a Map value.

Implementation

static WebViewPackageInfo? fromMap(Map<String, dynamic>? map) {
  if (map == null) {
    return null;
  }
  final instance = WebViewPackageInfo(
    packageName: map['packageName'],
    versionName: map['versionName'],
  );
  return instance;
}