toJson method

  1. @override
Object toJson()

Implementation

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