JsonRpcResponse<T> class abstract

JSON RPC Response

A JSON RPC response.

Inheritance
Implementers

Constructors

JsonRpcResponse.new({required String jsonrpc, int? id})
The interface for a JSON RPC response.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
id int?
The client-generated identifier sent with the request.
final
jsonrpc String
The JSON RPC version.
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() → 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.