Wifi.fromMap constructor

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

fromMap Returns a Wifi object from a map.

Implementation

factory Wifi.fromMap(Map<String, dynamic> map) {
  return Wifi(
    state: map['state'],
    ssid: map['ssid'],
    bssid: map['bssid'],
    hiddenSsid: map['hiddenSsid'],
    ipv4Address: map['ipv4Address'],
    ipv6Address: map['ipv6Address'],
    signalStrength: map['signalStrength'],
    linkSpeed: map['linkSpeed'],
    frequency: map['frequency'],
    networkId: map['networkId'],
    gateway: map['gateway'],
    netmask: map['netmask'],
    dns1: map['dns1'],
    dhcpLeaseDuration: map['dhcpLeaseDuration'],
    w5ghzBand: map['w5ghzBand'],
    isWifiAware: map['isWifiAware'],
    isWifiDirectAvailable: map['isWifiDirectAvailable'],
  );
}