Sequence class

Constructors

Sequence({int? createdAt, String? id, String? name, String? status, int? updatedAt})
Returns a new Sequence instance.

Properties

createdAt ↔ int?
CreatedAt is unix seconds when the sequence was registered, server-assigned and never rewritten.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
id ↔ String?
ID is the server-assigned sequence id ("seq_" + 128 random bits).
getter/setter pair
name ↔ String?
Name is the sequence's label. Required, trimmed, capped at 1024 bytes.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status ↔ String?
Status is the lifecycle: draft, active or archived. Empty means draft, and ONLY an active sequence accepts enrollments.
getter/setter pair
updatedAt ↔ int?
UpdatedAt is unix seconds of the last status flip, server-assigned, and the key the sequence list is ordered by (newest first). Adding a step or enrolling a contact does NOT touch it — only draft/active/archived does — so it tracks activation rather than activity.
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) → Sequence?
Returns a new Sequence instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<Sequence>
mapFromJson(dynamic json) → Map<String, Sequence>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<Sequence>>

Constants

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