Recommendation.from constructor

Recommendation.from({
  1. required String userId,
  2. required double score,
  3. required String reason,
  4. required String reasonPhrase,
  5. required RecommendedUser user,
})

Returns the new instance of Recommendation based on arguments.

Implementation

Recommendation.from({
  required this.userId,
  required this.score,
  required this.reason,
  required this.reasonPhrase,
  required this.user,
});