Product class final

A catalog product and its prices, attributes, media, and fulfillment data.

type and dimensions describe what is sold, while shipment describes how the product is delivered or fulfilled.

Available extensions

Constructors

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

Properties

about → String?
final
active → bool
final
archivedAt → DateTime?
final
attributes → List<Attribute>?
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
isArchived → bool

Available on Product, provided by the ProductSemantics extension

no setter
isPublished → bool

Available on Product, provided by the ProductSemantics extension

no setter
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
wasEverPublished → bool

Available on Product, provided by the ProductSemantics extension

no setter

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