TrainingMetrics.fromJson constructor

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

Implementation

factory TrainingMetrics.fromJson(Map<String, dynamic> json) {
  return TrainingMetrics(
    auc: json['auc'] as double?,
    metricDataPoints: (json['metricDataPoints'] as List?)
        ?.whereNotNull()
        .map((e) => MetricDataPoint.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}