GetDistributionMetricDataResult.fromJson constructor

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

Implementation

factory GetDistributionMetricDataResult.fromJson(Map<String, dynamic> json) {
  return GetDistributionMetricDataResult(
    metricData: (json['metricData'] as List?)
        ?.whereNotNull()
        .map((e) => MetricDatapoint.fromJson(e as Map<String, dynamic>))
        .toList(),
    metricName: (json['metricName'] as String?)?.toDistributionMetricName(),
  );
}