Convert to json object.
Map<String, Object?> toJson() => { 'latitude': latitude, 'longitude': longitude, };