GetInsightsResponse.fromJson constructor

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

Implementation

factory GetInsightsResponse.fromJson(Map<String, dynamic> json) {
  return GetInsightsResponse(
    insights: (json['Insights'] as List)
        .whereNotNull()
        .map((e) => Insight.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['NextToken'] as String?,
  );
}