factory Metrics.fromBrowser(List<Metric> metrics) => Metrics({for (var m in metrics) m.name: m.value});