GetInsightSummariesResult.fromJson constructor

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

Implementation

factory GetInsightSummariesResult.fromJson(Map<String, dynamic> json) {
  return GetInsightSummariesResult(
    insightSummaries: (json['InsightSummaries'] as List?)
        ?.whereNotNull()
        .map((e) => InsightSummary.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['NextToken'] as String?,
  );
}