public static GenericJsonModel toGenericJsonModel(List<MetricsPacket> metricsPackets) {
        return toGenericJsonModel(metricsPackets, null);
    }
Utilities for converting between metrics packets and the generic json format.

@author gjoranv
metrics-proxy/src/main/java/ai/vespa/metricsproxy/metric/model/json/GenericJsonUtil.java