toJson method

  1. @override
Object toJson()
override

Implementation

@override
Object toJson() {
  return {
    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,
      ),
  };
}