toJson method
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(),
};