MetricDataPoint.fromJson constructor

MetricDataPoint.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory MetricDataPoint.fromJson(Map<String, dynamic> json) {
  return MetricDataPoint(
    fpr: json['fpr'] as double?,
    precision: json['precision'] as double?,
    threshold: json['threshold'] as double?,
    tpr: json['tpr'] as double?,
  );
}