GetMetricDataResponse.fromJson constructor

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

Implementation

factory GetMetricDataResponse.fromJson(Map<String, dynamic> json) {
  return GetMetricDataResponse(
    metricResults: (json['MetricResults'] as List?)
        ?.whereNotNull()
        .map(
            (e) => HistoricalMetricResult.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['NextToken'] as String?,
  );
}