AtRpcResp class
Simple data structure whose JSON is transmitted as the payload of the notification which is sent by the responder back to the requester
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String?
-
An optional additional message
final
-
payload
→ Map<
String, dynamic> -
The app-specific payload of the response
final
- reqId → int
-
The unique ID of the request. See also AtRpcReq.reqId
final
- respType → AtRpcRespType
-
The response type (ack / nack / success / error) - see AtRpcRespType
final
- 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.
inherited
Static Methods
-
ack(
{required AtRpcReq request}) → AtRpcResp - factory which makes an AtRpcResp with AtRpcRespType.ack and no payload
-
fromJson(
Map< String, dynamic> json) → AtRpcResp -
nack(
{required AtRpcReq request, String? message, Map< String, dynamic> ? payload}) → AtRpcResp - factory which makes an AtRpcResp with AtRpcRespType.nack and no payload