toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (confidenceThreshold != null)
        'confidenceThreshold': confidenceThreshold!,
      if (f1Score != null) 'f1Score': f1Score!,
      if (f1ScoreAt1 != null) 'f1ScoreAt1': f1ScoreAt1!,
      if (f1ScoreAt5 != null) 'f1ScoreAt5': f1ScoreAt5!,
      if (precision != null) 'precision': precision!,
      if (precisionAt1 != null) 'precisionAt1': precisionAt1!,
      if (precisionAt5 != null) 'precisionAt5': precisionAt5!,
      if (recall != null) 'recall': recall!,
      if (recallAt1 != null) 'recallAt1': recallAt1!,
      if (recallAt5 != null) 'recallAt5': recallAt5!,
    };