toJson method

Map<String, dynamic> toJson()

Implementation

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