toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      if (text != null) 'text': text!.toJson(),
      if (query != null) 'query': query,
    };