RPCRequestDetails class
Represents details of an RPC (Remote Procedure Call) request.
Constructors
-
RPCRequestDetails.new({required int id, required String method, required Map<
String, dynamic> params}) -
Creates an instance of RPCRequestDetails.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → int
-
The unique identifier for the RPC request.
final
- method → String
-
The name of the RPC method.
final
-
params
→ Map<
String, dynamic> -
The parameters for the RPC call.
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
-
toJsonRpcParams(
) → Map< String, dynamic> - Converts the request details to JSON-RPC parameters.
-
toString(
) → String -
A string representation of this object.
inherited
-
toWebsocketParams(
) → Map< String, dynamic> - Converts the request details to WebSocket parameters.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited