Metric.fromJson constructor
Implementation
factory Metric.fromJson(Map<String, dynamic> j) => Metric(
name: j['name'] ?? '',
unit: j['unit'],
description: j['description'],
sum: j['sum'] != null ? Sum.fromJson(j['sum']) : null,
gauge: j['gauge'] != null ? Gauge.fromJson(j['gauge']) : null,
);