PredefinedMetricSpecification.fromJson constructor

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

Implementation

factory PredefinedMetricSpecification.fromJson(Map<String, dynamic> json) {
  return PredefinedMetricSpecification(
    predefinedMetricType:
        (json['PredefinedMetricType'] as String).toMetricType(),
    resourceLabel: json['ResourceLabel'] as String?,
  );
}