EnhancedMetrics.fromJson constructor

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

Implementation

factory EnhancedMetrics.fromJson(Map<String, dynamic> json) {
  return EnhancedMetrics(
    shardLevelMetrics: (json['ShardLevelMetrics'] as List?)
        ?.whereNotNull()
        .map((e) => (e as String).toMetricsName())
        .toList(),
  );
}