MetricSummary.fromJson constructor

MetricSummary.fromJson(
  1. Map<String, dynamic> data
)

Deserializes a MetricSummary from JSON Map.

Implementation

factory MetricSummary.fromJson(Map<String, dynamic> data) => MetricSummary(
      min: data['min'],
      max: data['max'],
      count: data['count'],
      sum: data['sum'],
      tags: data['tags']?.cast<String, String>(),
    );