@override Object toJson() => { if (toolCallValidMetricValues.isNotDefault) 'toolCallValidMetricValues': encodeList(toolCallValidMetricValues), };