toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
  if (aggregationMetrics != null) 'aggregationMetrics': aggregationMetrics!,
  if (bleuSpec != null) 'bleuSpec': bleuSpec!,
  if (exactMatchSpec != null) 'exactMatchSpec': exactMatchSpec!,
  if (llmBasedMetricSpec != null) 'llmBasedMetricSpec': llmBasedMetricSpec!,
  if (pairwiseMetricSpec != null) 'pairwiseMetricSpec': pairwiseMetricSpec!,
  if (pointwiseMetricSpec != null)
    'pointwiseMetricSpec': pointwiseMetricSpec!,
  if (predefinedMetricSpec != null)
    'predefinedMetricSpec': predefinedMetricSpec!,
  if (rougeSpec != null) 'rougeSpec': rougeSpec!,
};