AiutaProduct class

Represents the information about a product in the Aiuta platform.

Annotations
  • @JsonSerializable.new()

Constructors

AiutaProduct({required String id, required String title, required String brand, required List<String> imageUrls, AiutaProductPrice? price = null})
Creates a new instance of AiutaProduct to pass the information about a product to the Aiuta platform.
AiutaProduct.fromJson(Map<String, dynamic> json)
factory

Properties

brand String
The brand name of the product.
final
hashCode int
The hash code for this object.
no setterinherited
id String
A unique identifier for the product.
final
imageUrls List<String>
A list of URLs pointing to the images of the product. Flatlay should be the first image in the list.
final
price AiutaProductPrice?
Optional price information for the product. In order to display prices, the Aiuta UI AiutaProductBarTheme needs to be configured with a AiutaProductBarPrices.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
title String
The localized title of the product.
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.
inherited

Operators

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