Product
constructor(name: String?, id: String?, price: Double?, quantity: Int?, category: String?, brand: String?, variant: String?, attributes: Map<String, String>)
Parameters
name
The name of the product, or null if not specified.
id
The unique identifier for the product, or null if not specified.
price
The price of the product, or null if not specified.
quantity
The quantity of the product in the transaction, or null if not specified.
category
The category of the product, or null if not specified.
brand
The brand of the product, or null if not specified.
variant
The variant of the product, or null if not specified.
attributes
A map of additional attributes associated with the product.