Converts the request parameters to a JSON format.
@override Map<String, dynamic> toJson() { return {"startNum": startNum, "endNum": endNum}; }