Call class

Constructors

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

Properties

agent ↔ String?
Agent names the Hanzo assistant handling the call. Set means the call was answered by that assistant rather than connected to a person.
getter/setter pair
from ↔ String?
From is the calling number in E.164. It must be one this org holds: a carrier refuses an origination from a number nobody proved they own.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
id ↔ String?
ID is the carrier's handle for the call — what a hangup or a lookup names.
getter/setter pair
org ↔ String?
Org is the tenant the call was placed 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 call is: "queued", "ringing", "answered", "completed" or "failed". Only the last two are terminal.
getter/setter pair
to ↔ String?
To is the called 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) → Call?
Returns a new Call instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<Call>
mapFromJson(dynamic json) → Map<String, Call>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<Call>>

Constants

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