NotifySend class

Constructors

NotifySend({String? body, String? channel, String? event, String? provider, String? subject, String? sync_, String? templateId, Object? templateVars, List<String> to = const []})
Returns a new NotifySend instance.

Properties

body ↔ String?
Body is the message text, sent verbatim when present — the no-template path.
getter/setter pair
channel ↔ String?
Channel selects the delivery channel, sms or email. The per-channel routes (/send/sms, /send/email) pin it, overriding whatever the body names; on the generic route it is required.
getter/setter pair
event ↔ String?
Event is the event name, which doubles as the template id when TemplateID is empty — the IAM OTP path sends event=iam.otp_sent and nothing else.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
provider ↔ String?
Provider pins a provider service name (twilio, plivo, twilio_email, mail). Empty picks the one whose org credentials are actually configured in KMS.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
subject ↔ String?
Subject is the message subject, carried on the email channel only.
getter/setter pair
sync_ ↔ String?
Sync must be exactly "true": delivery here is synchronous, and anything else answers 503 because the queue plane that would run an async dispatch is owned elsewhere. Over REST it rides as ?sync=true (the URL binds over the body); a by-name call states it in its arguments.
getter/setter pair
templateId ↔ String?
TemplateID selects a built-in template when Body is empty.
getter/setter pair
templateVars ↔ Object?
getter/setter pair
to ↔ List<String>
To is the destination address per recipient — a phone number for sms, an email address for email. Several recipients fan out into one provider call each, and the response shape follows the count (see the items field).
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) → NotifySend?
Returns a new NotifySend instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<NotifySend>
mapFromJson(dynamic json) → Map<String, NotifySend>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<NotifySend>>

Constants

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