Unsubscribed class
Constructors
- Unsubscribed({String? address, String? channel, bool? unsubscribed})
- Returns a new Unsubscribed instance.
Properties
- address ↔ String?
-
Address is the recipient now opted out, normalized (lower-cased, trimmed) to the form the send gate matches on — so it can differ in case from the address the link carried.
getter/setter pair
- channel ↔ String?
-
Channel is the ONE surface opted out of: email, sms, social, meta, google or tiktok. The other channels are untouched, and so is this address in every other org.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- unsubscribed ↔ bool?
-
Unsubscribed is always true here: the opt-out is idempotent, so a second click on the same link confirms the same thing rather than reporting nothing changed. A refused token never reaches this shape — it is a 403.
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) → Unsubscribed? -
Returns a new Unsubscribed instance and imports its values from
valueif it's a Map, null otherwise. -
listFromJson(
dynamic json, {bool growable = false}) → List< Unsubscribed> -
mapFromJson(
dynamic json) → Map< String, Unsubscribed> -
mapListFromJson(
dynamic json, {bool growable = false}) → Map< String, List< Unsubscribed> >
Constants
-
requiredKeys
→ const Set<
String> - The list of required keys that must be present in a JSON.