toMap method

Map<String, Object?> toMap()

As a map.

Implementation

Map<String, Object?> toMap() => <String, Object?>{
  "types": types.map((UNetworkType t) => t.name).toList(),
  "connected": connected,
  "internet": internet,
  "captivePortal": captivePortal,
  "metered": metered,
  "constrained": constrained,
  "roaming": roaming,
  "cellular": cellularGeneration,
  "downKbps": downlinkKbps,
  "upKbps": uplinkKbps,
  "rttMs": rttMs,
  "signal": signalStrength,
  "interface": interfaceName,
};