toJson method
override
Object to Map serializer
Implementation
@override
Map<String, dynamic> toJson() {
return {
'@type': 'messageProximityAlertTriggered',
if (extra != null) '@extra': extra,
'traveler_id': traveler_id,
'watcher_id': watcher_id,
'distance': distance
};
}