toMap method
Converts this network capability to a map using the native field names.
Implementation
Map<String, Object> toMap() {
return <String, Object>{
'isConnected': isConnected,
'transportType': transportType,
'isValidated': isValidated,
'isMetered': isMetered,
'hasVpn': hasVpn,
'hasWifi': hasWifi,
'hasCellular': hasCellular,
'hasEthernet': hasEthernet,
'hasBluetooth': hasBluetooth,
'hasLowLatency': hasLowLatency,
'hasHighBandwidth': hasHighBandwidth,
};
}