Suppression class
Constructors
- Suppression({String? address, String? channel, int? createdAt, String? reason})
- Returns a new Suppression instance.
Properties
- address ↔ String?
-
Address is the recipient, normalized (lower-cased, trimmed) so an opt-out cannot be slipped past on a case or whitespace difference. Required.
getter/setter pair
- channel ↔ String?
-
Channel is the surface opted out of: email, sms, social, meta, google or tiktok. Empty means email. Opting out of one leaves the others reachable.
getter/setter pair
- createdAt ↔ int?
-
CreatedAt is unix seconds, server-assigned.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setteroverride
- reason ↔ String?
-
Reason is a free-text note, capped at 1024 bytes. The public one-click endpoint records "one-click unsubscribe".
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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) → Suppression? -
Returns a new Suppression instance and imports its values from
valueif it's a Map, null otherwise. -
listFromJson(
dynamic json, {bool growable = false}) → List< Suppression> -
mapFromJson(
dynamic json) → Map< String, Suppression> -
mapListFromJson(
dynamic json, {bool growable = false}) → Map< String, List< Suppression> >
Constants
-
requiredKeys
→ const Set<
String> - The list of required keys that must be present in a JSON.