TransitionResult class

Constructors

TransitionResult({PublishResult? distribution, String? doctype, String? from, String? name, StorefrontResult? storefront, String? to})
Returns a new TransitionResult instance.

Properties

distribution ↔ PublishResult?
Distribution is the channel fan-out this move triggered. Present ONLY on the move to published, the single edge that distributes — so its absence means no fan-out was attempted, never that one failed quietly. A fan-out that DID fail is present carrying its own honest status, because distribution never rolls the status change back.
getter/setter pair
doctype ↔ String?
DocType is the content type that moved — Campaign, SocialPost or Asset — echoed from the path.
getter/setter pair
from ↔ String?
From is the state the item held when it was read. A document carrying no status yet reads as "draft".
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
name ↔ String?
Name is the document that moved, echoed from the path.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
storefront ↔ StorefrontResult?
Storefront is the catalog side effect, present only when a published Asset was product imagery — it carries a design and a kind of ecom, product or lifestyle. Absent for everything else, so absence reads as "not catalog imagery" rather than "the catalog failed".
getter/setter pair
to ↔ String?
To is the state it holds now. From == To on an idempotent re-transition, which is legal and is where a caller that lost a publish race lands.
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) → TransitionResult?
Returns a new TransitionResult instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<TransitionResult>
mapFromJson(dynamic json) → Map<String, TransitionResult>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<TransitionResult>>

Constants

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