fromMap static method
Implementation
static AutocompleteResult fromMap(Map<String, dynamic> map) {
ELocation? _elocation;
if (map.containsKey("eLocation")) {
_elocation = ELocation.fromMap(map["eLocation"]);
}
SuggestedSearch? _suggestedSearch;
if (map.containsKey("suggestedSearch")) {
_suggestedSearch = SuggestedSearch.fromMap(map["suggestedSearch"]);
}
bool? _isRequestForCurrentLocation;
if(map.containsKey("isRequestForCurrentLocation")) {
_isRequestForCurrentLocation = map["isRequestForCurrentLocation"] as bool?;
}
return AutocompleteResult(
eLocation: _elocation, suggestedSearch: _suggestedSearch, isRequestForCurrentLocation: _isRequestForCurrentLocation);
}