Metric.fromJson constructor
Implementation
factory Metric.fromJson(Map<String, dynamic> json) {
return Metric(
frameName: json['frameName'] as String,
threadStates: (json['threadStates'] as List)
.whereNotNull()
.map((e) => e as String)
.toList(),
type: (json['type'] as String).toMetricType(),
);
}