STRProductItem class

This data class represents a product

Constructors

STRProductItem({required String productId, required String productGroupId, String? title, String? desc, required double price, double? salesPrice, required String currency, List<String>? imageUrls, String? url, List<STRProductVariant>? variants, String? ctaText})
STRProductItem.fromJson(Map<String, dynamic> json)
factory

Properties

ctaText String?
CTA text of product
final
currency String
Currency of product
final
desc String?
Description of product
final
hashCode int
The hash code for this object.
no setterinherited
imageUrls List<String>?
Images of products
final
price double
Price of product
final
productGroupId String
ID of the product group
final
productId String
ID of the product
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
salesPrice double?
Sales price of product
final
title String?
Title of product
final
url String?
Url of product
final
variants List<STRProductVariant>?
Variants of 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