toJson method
Converts the request to JSON format.
Implementation
@override
List<dynamic> toJson() {
return [
programId.address,
SolanaRPCUtils.createConfig([
commitment?.toJson(),
{"filters": filters?.map((e) => e.toJson()).toList()},
encoding?.toJson()
])
];
}