queryParameters property
The query parameters for the endpoint.
Implementation
@override
Map<String, String> get queryParameters {
final qp = {'q': term.toLowerCase(), 'strictMatch': strictMatch.toString()};
if (fields != null) {
qp['fields'] = fields!.toParameter;
}
if (registers != null) {
qp['registers'] = registers!.toParameter;
}
if (grammaticalFeatures != null) {
qp['grammaticalFeatures'] = grammaticalFeatures!.toParameter;
}
if (domains != null) {
qp['domains'] = domains!.toParameter;
}
if (lexicalCategory != null) {
qp['lexicalCategory'] = lexicalCategory!.name;
}
return qp;
}