StorefrontResult class

Constructors

StorefrontResult({String? imageUrl, String? slug, String? status, String? store})
Returns a new StorefrontResult instance.

Properties

hashCode → int
The hash code for this object.
no setteroverride
imageUrl ↔ String?
ImageURL is the absolute URL the listing's headerImage now points at. The image is REFERENCED, not copied — it stays in the org's studio output bucket, so removing it there empties the storefront tile.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
slug ↔ String?
Slug is the product handle the image was attached to. It IS the asset's design field — that equality is the whole join between the studio and the catalog, which is why an asset with no design produces no storefront result at all.
getter/setter pair
status ↔ String?
Status is one of "published" (the product image was set), "not_configured" (no commerce edge, no store provisioned for the org, or a token that is not admin on the store — a fail-closed no-op) or "failed" (commerce answered and errored). None of the three fails the transition that produced it.
getter/setter pair
store ↔ String?
Store is the commerce store id the image landed in, resolved for the org mid-call. Present only on "published": a result that never got that far carries none.
getter/setter pair

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.
override

Operators

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

Static Methods

fromJson(dynamic value) → StorefrontResult?
Returns a new StorefrontResult instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<StorefrontResult>
mapFromJson(dynamic json) → Map<String, StorefrontResult>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<StorefrontResult>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.