EvaluationResult.fromJson constructor

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

Implementation

factory EvaluationResult.fromJson(Map<String, dynamic> json) {
  return EvaluationResult(
    f1Score: json['F1Score'] as double?,
    summary: json['Summary'] != null
        ? Summary.fromJson(json['Summary'] as Map<String, dynamic>)
        : null,
  );
}