toJson method

  1. @override
Map<String, dynamic> toJson()
override

Converts an InputLocationMessageContent object to a JSON map

Implementation

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