GooglePlaceAutocompleteResponse class

Represents the response from the Google Place Autocomplete API.

This class contains the results of the auto-completion query, including a list of predictions and the status of the request.

Constructors

GooglePlaceAutocompleteResponse({List<Prediction>? predictions, String? status})
Creates a GooglePlaceAutocompleteResponse instance.
GooglePlaceAutocompleteResponse.fromJson(dynamic json)
Creates a GooglePlaceAutocompleteResponse from a JSON map.
factory

Properties

error String?
An optional error message related to the request.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
predictions List<Prediction>?
A list of predictions for the auto-completion query.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status String?
The status of the API request.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited