fromMap static method

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

Implementation

static WebMessageChannel? fromMap(Map<String, dynamic>? map) {
  PlatformWebMessageChannel? platform =
      PlatformWebMessageChannel.static().fromMap(map);
  if (platform == null) {
    return null;
  }
  return WebMessageChannel.fromPlatform(platform: platform);
}