toJson method

Map<String, dynamic> toJson()

Implementation

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