toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (approximateNeighborCount != null)
        'approximateNeighborCount': approximateNeighborCount!,
      if (datapoint != null) 'datapoint': datapoint!,
      if (fractionLeafNodesToSearchOverride != null)
        'fractionLeafNodesToSearchOverride':
            fractionLeafNodesToSearchOverride!,
      if (neighborCount != null) 'neighborCount': neighborCount!,
      if (perCrowdingAttributeNeighborCount != null)
        'perCrowdingAttributeNeighborCount':
            perCrowdingAttributeNeighborCount!,
    };