ResponseResourceMetricKey.fromJson constructor

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

Implementation

factory ResponseResourceMetricKey.fromJson(Map<String, dynamic> json) {
  return ResponseResourceMetricKey(
    metric: json['Metric'] as String,
    dimensions: (json['Dimensions'] as Map<String, dynamic>?)
        ?.map((k, e) => MapEntry(k, e as String)),
  );
}