RecommendationSummary.fromJson constructor
Implementation
factory RecommendationSummary.fromJson(Map<String, dynamic> json) {
return RecommendationSummary(
accountId: json['accountId'] as String?,
recommendationResourceType:
(json['recommendationResourceType'] as String?)
?.toRecommendationSourceType(),
summaries: (json['summaries'] as List?)
?.whereNotNull()
.map((e) => Summary.fromJson(e as Map<String, dynamic>))
.toList(),
);
}