InsightResults.fromJson constructor

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

Implementation

factory InsightResults.fromJson(Map<String, dynamic> json) {
  return InsightResults(
    groupByAttribute: json['GroupByAttribute'] as String,
    insightArn: json['InsightArn'] as String,
    resultValues: (json['ResultValues'] as List)
        .whereNotNull()
        .map((e) => InsightResultValue.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}