toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (f1Score != null) 'f1Score': f1Score!,
      if (falseNegativesCount != null)
        'falseNegativesCount': falseNegativesCount!,
      if (falsePositivesCount != null)
        'falsePositivesCount': falsePositivesCount!,
      if (groundTruthDocumentCount != null)
        'groundTruthDocumentCount': groundTruthDocumentCount!,
      if (groundTruthOccurrencesCount != null)
        'groundTruthOccurrencesCount': groundTruthOccurrencesCount!,
      if (precision != null) 'precision': precision!,
      if (predictedDocumentCount != null)
        'predictedDocumentCount': predictedDocumentCount!,
      if (predictedOccurrencesCount != null)
        'predictedOccurrencesCount': predictedOccurrencesCount!,
      if (recall != null) 'recall': recall!,
      if (totalDocumentsCount != null)
        'totalDocumentsCount': totalDocumentsCount!,
      if (truePositivesCount != null)
        'truePositivesCount': truePositivesCount!,
    };