toJson method
Converts the request parameters to a JSON representation.
Implementation
@override
List<dynamic> toJson() {
return [
slot,
SolanaRequestUtils.createConfig([
commitment?.toJson(),
encoding?.toJson(),
transactionDetails?.toJson(),
{'maxSupportedTransactionVersion': maxSupportedTransactionVersion},
{'rewards': rewards},
]),
];
}