toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.query != null) {
json[r'query'] = this.query;
} else {
json[r'query'] = null;
}
if (this.displayText != null) {
json[r'displayText'] = this.displayText;
} else {
json[r'displayText'] = null;
}
return json;
}