Enrollment class

Constructors

Enrollment({String? address, String? channel, int? currentStep, int? enrolledAt, String? id, int? nextRunAt, String? sequenceId, String? status, int? updatedAt})
Returns a new Enrollment instance.

Properties

address ↔ String?
Address is the normalized (lower-cased, trimmed) recipient.
getter/setter pair
channel ↔ String?
Channel is the delivery surface the steps go out on.
getter/setter pair
currentStep ↔ int?
CurrentStep is the index of the step that sends next.
getter/setter pair
enrolledAt ↔ int?
EnrolledAt is unix seconds when the contact joined the walk, and orders the enrollment list (newest first).
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
id ↔ String?
ID is the server-assigned enrollment id ("enr_" + 128 random bits).
getter/setter pair
nextRunAt ↔ int?
NextRunAt is the unix time the current step comes due; 0 once the walk has ended. It IS the schedule — durable in SQLite, so it survives restarts.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sequenceId ↔ String?
SequenceID is the sequence being walked.
getter/setter pair
status ↔ String?
Status is active, completed or canceled.
getter/setter pair
updatedAt ↔ int?
UpdatedAt is unix seconds of the last move: the drip engine writes it each time it advances the walk a step, completes it or cancels it. Together with Status it says when the walk last did anything, which is how a stalled enrollment is told from a finished one.
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) → Enrollment?
Returns a new Enrollment instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<Enrollment>
mapFromJson(dynamic json) → Map<String, Enrollment>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<Enrollment>>

Constants

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