Parsing nested metrics in v2.analytics.conversation.aggregate events

Building a consumer for v2.analytics.conversation.aggregate events. The payload is massive. Trying to extract the talk duration from the metrics array, but the nesting is weird. The metrics array contains objects with a metric name and a values array, where each value has a timestamp and value.

{
 "data": {
 "metrics": [
 {
 "metric": "talk",
 "values": [
 { "timestamp": 1678886400000, "value": 12.5 }
 ]
 }
 ]
 }
}

My current filter logic is slow. Is there a standard way to flatten this for quick lookup without iterating the whole metrics array every time? Feels like I’m missing a utility method in the SDK or a common pattern.