toMap method

  1. @override
Map<String, String> toMap()
override

Converts the parameters into a map representation.

Returns a Map object where the keys are the parameter names and the values are their corresponding string representations.

Implementation

@override
Map<String, String> toMap() {
  return {
    ...super.toMap(),
    "q": q.value,
  };
}