MetricData.fromJson constructor

MetricData.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory MetricData.fromJson(Map<String, dynamic> json) {
  return MetricData(
    metricName: json['MetricName'] as String?,
    timestamp: timeStampFromJson(json['Timestamp']),
    value: json['Value'] as double?,
  );
}