toJson method
Converts the request parameters to a JSON representation.
Implementation
@override
List<dynamic> toJson() {
return [
{
'to': contractAddress,
'data': raw,
if (from != null) 'from': from,
},
blockNumber
];
}