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