GetResourceMetricsResponse.fromJson constructor
GetResourceMetricsResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory GetResourceMetricsResponse.fromJson(Map<String, dynamic> json) {
return GetResourceMetricsResponse(
alignedEndTime: timeStampFromJson(json['AlignedEndTime']),
alignedStartTime: timeStampFromJson(json['AlignedStartTime']),
identifier: json['Identifier'] as String?,
metricList: (json['MetricList'] as List?)
?.whereNotNull()
.map((e) => MetricKeyDataPoints.fromJson(e as Map<String, dynamic>))
.toList(),
nextToken: json['NextToken'] as String?,
);
}