JsonRpcRequest<T> class
JSON RPC Request
- Inheritance
-
- Object
- Serialisable
- JsonRpcRequest
Constructors
- JsonRpcRequest(Enum method, {T? params, int? id})
-
Creates a JSON-RPC request to invoke
methodwithparams.const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → int?
-
A unique client-generated identifier.
final
- jsonrpc → String
-
The JSON-RPC protocol version.
final
- method → Enum
-
The method to be invoked.
final
- params → T?
-
A JSON array of ordered parameter values.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{Enum? method, List< Object> ? params, int? id}) → JsonRpcRequest -
Creates a JSON JsonRpcRequest to invoke a
method. -
hash(
) → String -
Generates a hash that uniquely identifies this request's method invocation.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serialises
thisclass into a JSON object.override -
toJsonClean(
) → Map< String, dynamic> -
Returns the result of toJson, removing all
nullvalued entries.inherited -
toResponse(
{T? result, JsonRpcException? error}) → JsonRpcResponse< T> - Creates a JsonRpcResponse for this request.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited