QueryAutocompleteRequest.fromMap constructor

QueryAutocompleteRequest.fromMap(
  1. Map map
)

Implementation

factory QueryAutocompleteRequest.fromMap(Map<dynamic, dynamic> map) {
  return QueryAutocompleteRequest(
    query: map['query'] ?? (throw ('A query must be provided.')),
    location:
        map['location'] != null ? Coordinate.fromMap(map['location']) : null,
    radius: map['radius'],
    language: map['language'],
    children: map['children'],
  );
}