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 a Map as input and creates a new instance of the Recommendation class using the values from the input Map.

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