toMap method

Map<String, Object> toMap()

Converts this speed sample to a map using the native field names.

Implementation

Map<String, Object> toMap() {
  return <String, Object>{
    'timestampMillis': timestampMillis,
    'rxBytesPerSecond': rxBytesPerSecond,
    'txBytesPerSecond': txBytesPerSecond,
    'rxKbps': rxKbps,
    'txKbps': txKbps,
    'totalRxBytes': totalRxBytes,
    'totalTxBytes': totalTxBytes,
    'isSupported': isSupported,
  };
}