toMap method
toMap Returns a map representation of the object.
Implementation
Map<String, dynamic> toMap() {
return {
'state': state,
'ssid': ssid,
'bssid': bssid,
'hiddenSsid': hiddenSsid,
'ipv4Address': ipv4Address,
'ipv6Address': ipv6Address,
'signalStrength': signalStrength,
'linkSpeed': linkSpeed,
'frequency': frequency,
'networkId': networkId,
'gateway': gateway,
'netmask': netmask,
'dns1': dns1,
'dhcpLeaseDuration': dhcpLeaseDuration,
'w5ghzBand': w5ghzBand,
'isWifiAware': isWifiAware,
'isWifiDirectAvailable': isWifiDirectAvailable,
};
}