RecommendationResponse class
The code defines a Dart class for a recommendation response and includes a function to convert a list of objects to a list of recommendations.
Constructors
- RecommendationResponse.fromMap(Map map)
-
This is a named constructor in the
RecommendationResponse
class that takes aMap
as input and initializes the properties of aRecommendationResponse
object.
Properties
- campaignHash → String
-
final
- campaignID → String
-
final
- correlationID → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
items
→ List<
Recommendation> -
final
- name → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- schema → String
-
final
- slug → String
-
final
- uuid → String
-
final
Methods
-
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