AtRpcReq class

Simple data structure whose JSON is transmitted as the payload of the notification which is sent from the requester to the responder

Constructors

AtRpcReq({required int reqId, required Map<String, dynamic> payload})

Properties

hashCode int
The hash code for this object.
no setterinherited
payload Map<String, dynamic>
The app-specific payload of the request
final
reqId int
A unique id which is used to correlate responses to requests
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

create(Map<String, dynamic> payload) AtRpcReq
factory which generates a request ID
fromJson(Map<String, dynamic> json) AtRpcReq