BatchGetFrameMetricDataResponse.fromJson constructor
BatchGetFrameMetricDataResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory BatchGetFrameMetricDataResponse.fromJson(Map<String, dynamic> json) {
return BatchGetFrameMetricDataResponse(
endTime: nonNullableTimeStampFromJson(json['endTime'] as Object),
endTimes: (json['endTimes'] as List)
.whereNotNull()
.map((e) => TimestampStructure.fromJson(e as Map<String, dynamic>))
.toList(),
frameMetricData: (json['frameMetricData'] as List)
.whereNotNull()
.map((e) => FrameMetricDatum.fromJson(e as Map<String, dynamic>))
.toList(),
resolution: (json['resolution'] as String).toAggregationPeriod(),
startTime: nonNullableTimeStampFromJson(json['startTime'] as Object),
unprocessedEndTimes: (json['unprocessedEndTimes'] as Map<String, dynamic>)
.map((k, e) => MapEntry(
k,
(e as List)
.whereNotNull()
.map((e) =>
TimestampStructure.fromJson(e as Map<String, dynamic>))
.toList())),
);
}