GetInsightEventsResult.fromJson constructor

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

Implementation

factory GetInsightEventsResult.fromJson(Map<String, dynamic> json) {
  return GetInsightEventsResult(
    insightEvents: (json['InsightEvents'] as List?)
        ?.whereNotNull()
        .map((e) => InsightEvent.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['NextToken'] as String?,
  );
}