Map<String, dynamic> toMap() { return <String, dynamic>{ 'hint': hint, 'searchFilter': searchFilter?.toMap(), 'apiKey': apiKey, }; }