PlacesAutocompleteResponse class

Annotations
  • @JsonSerializable(fieldRename: FieldRename.snake, explicitToJson: true)

Constructors

PlacesAutocompleteResponse({required List<PlaceAutocompletePrediction> predictions, required PlacesAutocompleteStatus status, String? errorMessage, String? infoMessage})
const
PlacesAutocompleteResponse.fromJson(Map<String, dynamic> json)
factory

Properties

errorMessage String?
This field contains more detailed information about thereasons behind the given status code. This field is not always returned, and its content is subject to change.
final
hashCode int
The hash code for this object.
no setteroverride
infoMessage String?
When the service returns additional information about the request specification,
final
predictions List<PlaceAutocompletePrediction>
Contains an array of predictions.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status PlacesAutocompleteStatus
Contains the status of the request, and may contain debugging information to help you track down why the request failed.
final

Methods

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

Operators

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