toJson method
Implementation
core.Map<core.String, core.dynamic> toJson() => {
if (datapoint != null) 'datapoint': datapoint!,
if (distance != null) 'distance': distance!,
if (sparseDistance != null) 'sparseDistance': sparseDistance!,
};