SMS class

Constructors

SMS({String? from, String? id, String? org, String? status, String? text, String? to})
Returns a new SMS instance.

Properties

from ↔ String?
From is the sending number in E.164, and must be one this org holds.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
id ↔ String?
ID is the carrier's handle for the message.
getter/setter pair
org ↔ String?
Org is the tenant the message was sent for or received by.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status ↔ String?
Status is where the message is: "queued", "sent", "delivered" or "failed". "sent" means the carrier took it; "delivered" means the handset got it, and not every carrier or destination reports that.
getter/setter pair
text ↔ String?
Text is the message body. Empty is legal when the message carried only media.
getter/setter pair
to ↔ String?
To is the receiving number in E.164.
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) → SMS?
Returns a new SMS instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<SMS>
mapFromJson(dynamic json) → Map<String, SMS>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<SMS>>

Constants

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