BatchGetTracesResult.fromJson constructor

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

Implementation

factory BatchGetTracesResult.fromJson(Map<String, dynamic> json) {
  return BatchGetTracesResult(
    nextToken: json['NextToken'] as String?,
    traces: (json['Traces'] as List?)
        ?.whereNotNull()
        .map((e) => Trace.fromJson(e as Map<String, dynamic>))
        .toList(),
    unprocessedTraceIds: (json['UnprocessedTraceIds'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
  );
}