toJson method
Creates a json from the object
Implementation
Map toJson() {
return {
'longitude': longitude,
'latitude': latitude,
'horizontal_accuracy': horizontalAccuracy,
'live_period': livePeriod,
'heading': heading,
'proximity_alert_radius': proximityAlertRadius,
}..removeWhere((_, v) => v == null);
}