toJson method

  1. @override
Object toJson()

Implementation

@override
Object toJson() => {
  'pointwiseMetricResult': ?pointwiseMetricResult?.toJson(),
  'pairwiseMetricResult': ?pairwiseMetricResult?.toJson(),
  'exactMatchMetricValue': ?exactMatchMetricValue?.toJson(),
  'bleuMetricValue': ?bleuMetricValue?.toJson(),
  'rougeMetricValue': ?rougeMetricValue?.toJson(),
  'customCodeExecutionResult': ?customCodeExecutionResult?.toJson(),
  if (aggregationMetric.isNotDefault)
    'aggregationMetric': aggregationMetric.toJson(),
};