toJson method
Implementation
@override
Object toJson() => {
if (rrf != null) 'rrf': rrf!.toJson(),
if (datapoint != null) 'datapoint': datapoint!.toJson(),
if (neighborCount.isNotDefault) 'neighborCount': neighborCount,
if (perCrowdingAttributeNeighborCount.isNotDefault)
'perCrowdingAttributeNeighborCount': perCrowdingAttributeNeighborCount,
if (approximateNeighborCount.isNotDefault)
'approximateNeighborCount': approximateNeighborCount,
if (fractionLeafNodesToSearchOverride.isNotDefault)
'fractionLeafNodesToSearchOverride': encodeDouble(
fractionLeafNodesToSearchOverride,
),
};