Recommendation class
The class Recommendation represents a recommendation with attributes and an item ID, and can be converted to and from a map.
Constructors
- Recommendation.fromMap(Map map)
-
This is a named constructor in the
Recommendation
class that takes aMap
as input and creates a new instance of theRecommendation
class using the values from the inputMap
.
Properties
-
attributes
→ Map<
String, Object> -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- itemID → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
asMap(
) → Map - The function returns a map with 'attributes' and 'itemID' keys and their corresponding values.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited