Recommendation.fromMap constructor

Recommendation.fromMap(
  1. Map map
)

This is a named constructor in the Recommendation class that takes a Map as input and creates a new instance of the Recommendation class using the values from the input Map.

Implementation

Recommendation.fromMap(Map map)
    : this._(
        attributes: Map<String, Object>.from(map['attributes']),
        itemID: map['itemID'],
      );