toJson method

Map toJson()

Implementation

Map<dynamic, dynamic> toJson() => {
    "method": method,
    "id": id,
    "params": params?.toJson(),
    "jsonrpc": jsonrpc,
};