@override Object toJson() { return { if (neighborId.isNotDefault) 'neighborId': neighborId, if (neighborDistance.isNotDefault) 'neighborDistance': encodeDouble(neighborDistance), }; }