CampaignWrite class
Constructors
-
CampaignWrite({String? audience, int? budget, List<
ChannelSpec> channels = const [], List<String> content = const [], String? name, int? scheduleAt}) - Returns a new CampaignWrite instance.
Properties
- audience ↔ String?
-
Audience is the segment or audience selector this campaign targets.
getter/setter pair
- budget ↔ int?
-
Budget is the campaign's total budget in CENTS. Negative reads as 0.
getter/setter pair
-
channels
↔ List<
ChannelSpec> -
Channels are the fan-out targets, at most one per kind (paid, organic, email) and at most 12. A channel's status and provider id are server-owned: whatever the caller sends for them is replaced with "pending".
getter/setter pair
-
content
↔ List<
String> -
Content is the ordered creative set. Content
0is the active creative and the rest are A/B variants; at most 32, empty entries dropped.getter/setter pair - hashCode → int
-
The hash code for this object.
no setteroverride
- name ↔ String?
-
Name is the campaign's display name. Required; trimmed and capped at 2048 characters.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scheduleAt ↔ int?
-
ScheduleAt is when the campaign should run, in unix seconds. Negative reads as 0 (immediately).
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) → CampaignWrite? -
Returns a new CampaignWrite instance and imports its values from
valueif it's a Map, null otherwise. -
listFromJson(
dynamic json, {bool growable = false}) → List< CampaignWrite> -
mapFromJson(
dynamic json) → Map< String, CampaignWrite> -
mapListFromJson(
dynamic json, {bool growable = false}) → Map< String, List< CampaignWrite> >
Constants
-
requiredKeys
→ const Set<
String> - The list of required keys that must be present in a JSON.