Map<String, dynamic> toJson() { final _json = <String, dynamic>{}; _json[r'term'] = term; if (prefixOnly != null) { _json[r'prefix_only'] = prefixOnly; } return _json; }