ChannelSpec class

Constructors

ChannelSpec({String? account, String? detail, String? externalId, String? kind, String? platform, String? status})
Returns a new ChannelSpec instance.

Properties

account ↔ String?
Account is the provider account this channel runs under: an ad-account, a page or a mailing-list id. An executor may replace it at launch with the account it actually used.
getter/setter pair
detail ↔ String?
Detail is the last outcome in one secret-free line — the failure reason, or what the executor reported. Absent when there is nothing to explain.
getter/setter pair
externalId ↔ String?
ExternalID is the provider-side id of the running execution, recorded by the orchestrator at launch and handed back verbatim to read spend or to pause. Server-owned and absent until this channel has launched; anything a caller sends for it is dropped.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
kind ↔ String?
Kind is the channel and the identity a campaign holds at most one of: paid, organic or email. It picks the executor the launch fans out to.
getter/setter pair
platform ↔ String?
Platform is the provider within the kind — meta, google, x, instagram, or the email provider.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status ↔ String?
Status is this channel's own launch outcome, not the campaign's: pending (added, never launched), live, paused, failed (Detail says why) or unavailable (no executor wired on this deployment). Server-owned — a caller can never assert it.
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) → ChannelSpec?
Returns a new ChannelSpec instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<ChannelSpec>
mapFromJson(dynamic json) → Map<String, ChannelSpec>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<ChannelSpec>>

Constants

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