GetContainerServiceMetricDataResult.fromJson constructor

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

Implementation

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