GetCurrentMetricDataResponse.fromJson constructor
Implementation
factory GetCurrentMetricDataResponse.fromJson(Map<String, dynamic> json) {
return GetCurrentMetricDataResponse(
dataSnapshotTime: timeStampFromJson(json['DataSnapshotTime']),
metricResults: (json['MetricResults'] as List?)
?.whereNotNull()
.map((e) => CurrentMetricResult.fromJson(e as Map<String, dynamic>))
.toList(),
nextToken: json['NextToken'] as String?,
);
}