Converts the request parameters to a JSON representation.
@override List<dynamic> toJson() { return [RPCETHSubscribeConst.logs, if (filter != null) filter!.toJson()]; }