ProjectedMetric.fromJson constructor
Implementation
factory ProjectedMetric.fromJson(Map<String, dynamic> json) {
return ProjectedMetric(
name: (json['name'] as String?)?.toMetricName(),
timestamps: (json['timestamps'] as List?)
?.whereNotNull()
.map(nonNullableTimeStampFromJson)
.toList(),
values: (json['values'] as List?)
?.whereNotNull()
.map((e) => e as double)
.toList(),
);
}