toJson method

Map<String, dynamic> toJson()

Converts a Location object to a JSON map

Implementation

Map<String, dynamic> toJson() {
  return {
    'longitude': longitude,
    'latitude': latitude,
    'horizontal_accuracy': horizontalAccuracy,
    'live_period': livePeriod,
    'heading': heading,
    'proximity_alert_radius': proximityAlertRadius,
  }..removeWhere(_nullFilter);
}