MetricValueStatus.fromJson constructor

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

Creates a MetricValueStatus from JSON data.

Implementation

factory MetricValueStatus.fromJson(Map<String, dynamic> json) {
  final tempAverageUtilizationJson = json['averageUtilization'];
  final tempAverageValueJson = json['averageValue'];
  final tempValueJson = json['value'];

  final int? tempAverageUtilization = tempAverageUtilizationJson;
  final String? tempAverageValue = tempAverageValueJson;
  final String? tempValue = tempValueJson;

  return MetricValueStatus(
    averageUtilization: tempAverageUtilization,
    averageValue: tempAverageValue,
    value: tempValue,
  );
}