GetPersonalizedRankingResponse.fromJson constructor
Implementation
factory GetPersonalizedRankingResponse.fromJson(Map<String, dynamic> json) {
return GetPersonalizedRankingResponse(
personalizedRanking: (json['personalizedRanking'] as List?)
?.whereNotNull()
.map((e) => PredictedItem.fromJson(e as Map<String, dynamic>))
.toList(),
recommendationId: json['recommendationId'] as String?,
);
}