Audience class

Constructors

Audience({int? createdAt, String? event, String? id, String? name, int? updatedAt, int? windowDays})
Returns a new Audience instance.

Properties

createdAt ↔ int?
CreatedAt is unix seconds when the filter was saved, server-assigned.
getter/setter pair
event ↔ String?
Event is the analytics event a member must have fired. EMPTY MEANS NO FILTER: the audience is then every mailable customer in the org, and no warehouse is consulted.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
id ↔ String?
ID is the server-assigned audience id ("aud_" + 128 random bits).
getter/setter pair
name ↔ String?
Name is the audience's label. Required, trimmed, capped at 1024 bytes.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
updatedAt ↔ int?
UpdatedAt is unix seconds of the last write, server-assigned, and the key the audience list is ordered by (newest first). A saved audience has no update route, so in practice it stays equal to CreatedAt: to change a filter you save another one.
getter/setter pair
windowDays ↔ int?
WindowDays is how far back the event counts, ending now. 0 means 30 and nothing above 3650 is honoured. Ignored when Event is empty.
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) → Audience?
Returns a new Audience instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<Audience>
mapFromJson(dynamic json) → Map<String, Audience>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<Audience>>

Constants

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