JsonRpcResponse<T> class
abstract
JSON RPC Response
A JSON RPC response.
- Inheritance
-
- Object
- Serializable
- JsonRpcResponse
- Implementers
Constructors
- JsonRpcResponse.new({required String jsonrpc, int? id})
-
The interface for a JSON RPC response.
const
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → dynamic -
Serialises
this
class into a JSON object.inherited -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
deocde<
S, T> (Map< String, dynamic> json, T decoder(S value)) → JsonRpcResponse<T> -
Parses the
json
RPC response and returns the result.
Constants
- idKey → const String
-
The
id
property key. - jsonrpcKey → const String
-
The
jsonrpc
property key.