AiutaProduct class

Represents the information about a SKU in the Aiuta platform.

Annotations
  • @JsonSerializable()

Constructors

AiutaProduct({required String skuId, String? catalogName, required String title, required List<String> imageUrls, String? localizedPrice, String? localizedOldPrice, required String brand, String? additionalShareInfo, required bool inWishlist})
Creates a new instance of AiutaProduct to pass the information about a SKU in the Aiuta platform.
AiutaProduct.fromJson(Map<String, dynamic> json)
Creates a new instance of AiutaProduct from a JSON object.
factory

Properties

additionalShareInfo String?
Optional additional information that can be shared when the user shares the generated image of try-on result. May include a link to the product page, a discount code, or any other information that can be useful for the user.
final
brand String
The brand of the SKU.
final
catalogName String?
The catalog identifier the SKU belongs to. It is recommended not to specify a skuCatalog unless it is explicitly necessary.
final
hashCode int
The hash code for this object.
no setterinherited
imageUrls List<String>
A list of URLs pointing to the images of the SKU.
final
inWishlist bool
A boolean value indicating whether the SKU is in the user's wishlist to display this status correctly.
final
localizedOldPrice String?
The localized old price of the SKU. Optional. Same as localizedPrice, but for the old price to be displayed as a strikethrough near the current price.
final
localizedPrice String?
The localized price of the SKU. Optional. If not provided, the price field will be hidden in the product details and the title field can might take up more space. If provided, it should be formatted as a string with the currency symbol and the amount.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
skuId String
A unique identifier for the SKU.
final
title String
The localized title of the SKU.
final

Methods

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

Operators

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