ProductCollection class

A collection of catalog products

Annotations
  • @JsonSerializable(fieldRename: FieldRename.snake)

Constructors

ProductCollection({required List<ProductCollectionElement> products, int? totalItems, int? totalPages, List<LinkDescription>? links})
const
ProductCollection.fromJson(Map<String, dynamic> json)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
An array of request-related HATEOAS links.
final
products List<ProductCollectionElement>
An array of products.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
totalItems int?
The total number of items. Maximum value: 500000000.
final
totalPages int?
The total number of pages. Maximum value: 100000000.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited