MetricPolicy.fromJson constructor
Implementation
factory MetricPolicy.fromJson(Map<String, dynamic> json) {
return MetricPolicy(
containerLevelMetrics:
(json['ContainerLevelMetrics'] as String).toContainerLevelMetrics(),
metricPolicyRules: (json['MetricPolicyRules'] as List?)
?.whereNotNull()
.map((e) => MetricPolicyRule.fromJson(e as Map<String, dynamic>))
.toList(),
);
}