QueryAutocompleteResponse.fromMap constructor
QueryAutocompleteResponse.fromMap(
- Map map
Implementation
factory QueryAutocompleteResponse.fromMap(Map<dynamic, dynamic> map) {
return QueryAutocompleteResponse(
sites: map['sites'] != null
? List<Site>.from(map['sites']?.map((dynamic x) => Site.fromMap(x)))
: null,
predictions: map['predictions'] != null
? List<AutoCompletePrediction>.from(
map['predictions']?.map(
(dynamic x) => AutoCompletePrediction.fromMap(x),
),
)
: null,
);
}