ListRecommendationsResponse.fromJson constructor

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

Implementation

factory ListRecommendationsResponse.fromJson(Map<String, dynamic> json) {
  return ListRecommendationsResponse(
    nextToken: json['NextToken'] as String?,
    recommendationSummaries: (json['RecommendationSummaries'] as List?)
        ?.whereNotNull()
        .map((e) => RecommendationSummary.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}