Converts the request parameters to a JSON representation.
Subclasses must implement this method to define how the request parameters are serialized to JSON.
Map<String, dynamic> toJson();