toMap method
Return the internal field of the class in map format.
Implementation
Map<String, dynamic> toMap() {
return {
'id': id,
'data': data,
'length': length,
'status': _status,
'activity': _activity?.toMap(),
'speed': _speed,
'timestamp': _timestamp,
'remainingDistance': _remainingDistance
};
}