JsonRpcMethod class

Holds name and args of a method request for JSON-RPC v2

Initialize with a string method name and list or map of params if notify is true, output format will be as 'notification' id is an int automatically generated from hashCode

Constructors

JsonRpcMethod(String method, {Object? args, bool notify = false})
constructor

Properties

args Object?
args is arguments to the method at the server. May be Map or List or nil
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id → dynamic
create id from hashcode when first requested
no setter
method String
method is the name of the method at the server
getter/setter pair
notify bool
Do we care about the response value?
getter/setter pair
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>
output the map representation of this instance for processing into JSON
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited