CurrentMetricData.fromJson constructor

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

Implementation

factory CurrentMetricData.fromJson(Map<String, dynamic> json) {
  return CurrentMetricData(
    metric: json['Metric'] != null
        ? CurrentMetric.fromJson(json['Metric'] as Map<String, dynamic>)
        : null,
    value: json['Value'] as double?,
  );
}