GetTraceSummariesResult.fromJson constructor

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

Implementation

factory GetTraceSummariesResult.fromJson(Map<String, dynamic> json) {
  return GetTraceSummariesResult(
    approximateTime: timeStampFromJson(json['ApproximateTime']),
    nextToken: json['NextToken'] as String?,
    traceSummaries: (json['TraceSummaries'] as List?)
        ?.whereNotNull()
        .map((e) => TraceSummary.fromJson(e as Map<String, dynamic>))
        .toList(),
    tracesProcessedCount: json['TracesProcessedCount'] as int?,
  );
}