Product class final

The product snapshot presented by a purchase intent.

Exposes id, about, active, and archivedAt, among other contract fields.

Constructors

Product({required String id, String? about, required bool active, DateTime? archivedAt, List<ProductAttributesItem>? attributes, String? category, required DateTime createdAt, CustomData? customData, String? description, Dimensions? dimensions, Media? media, required String name, DateTime? publishedAt, String? reference, Shipment? shipment, String? taxCode, required Type type, String? unitDim, DateTime? updatedAt, List<PriceSummary>? prices, String? variantSetId})
const
Product.fromJson(Map<String, Object?> json)
factory

Properties

about → String?
final
active → bool
final
archivedAt → DateTime?
final
attributes → List<ProductAttributesItem>?
final
category → String?
final
createdAt → DateTime
final
customData → CustomData?
final
description → String?
final
dimensions → Dimensions?
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
final
media → Media?
final
name → String
final
prices → List<PriceSummary>?
final
publishedAt → DateTime?
final
reference → String?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
shipment → Shipment?
final
taxCode → String?
final
type → Type
final
unitDim → String?
final
updatedAt → DateTime?
final
variantSetId → String?
final

Methods

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

Operators

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