toJson method
Returns the data fields of GeofenceRadius in JSON format.
Implementation
Map<String, dynamic> toJson() {
return {
'id': id,
'data': data,
'length': length,
'status': _status,
'activity': _activity?.toJson(),
'speed': _speed,
'timestamp': _timestamp,
'remainingDistance': _remainingDistance
};
}