CategoryResponse class

Response from PersonalizationSdk.getCategory.

Exposes the common subset available on both platforms: the total product count and the product list. Products are parsed with the shared Product model (Android returns a richer product than iOS; the parser tolerates the missing fields).

Constructors

CategoryResponse({required int productsTotal, required List<Product> products})
const
CategoryResponse.fromJson(Map<String, dynamic> json)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
products List<Product>
final
productsTotal int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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