PlacesResponse class

Response DTO for Search Nearby and Search Text.

Inheritance
Available extensions
Annotations
  • @JsonSerializable()
  • @CopyWith()

Constructors

PlacesResponse.new({List<Place>? places, List<RoutingSummary>? routingSummaries, List<ContextualContent>? contextualContents, String? nextPageToken, String? searchUri})
PlacesResponse.fromJson(Map<String, dynamic> json)
factory

Properties

contextualContents List<ContextualContent>?
A list of routing summaries where each entry associates to the corresponding place in the same index in the places field. If the routing summary is not available for one of the places, it will contain an empty entry. This list should have as many entries as the list of places if requested.
getter/setter pair
copyWith → _$PlacesResponseCWProxy

Available on PlacesResponse, provided by the $PlacesResponseCopyWith extension

Returns a callable class that can be used as follows: instanceOfPlacesResponse.copyWith(...).
no setter
hashCode int
The hash code for this object.
no setterinherited
nextPageToken String?
A token that can be used to get the next page of results.
final
places List<Place>
A list of places that meets user's requirements like places types, number of places and specific location restriction.
final
routingSummaries List<RoutingSummary>?
A list of routing summaries where each entry associates to the corresponding place in the same index in the places field. If the routing summary is not available for one of the places, it will contain an empty entry. This list should have as many entries as the list of places if requested.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
searchUri String?
A link allows the user to search with the same text query as specified in the request on Google Maps.
final

Methods

fromJsonList(List? jsonList) List<PlacesResponse>?
inherited
fromJsonMap(Map<String, dynamic>? json) PlacesResponse?
override
fromJsonString(String? json) PlacesResponse?
inherited
fromJsonStringList(String? jsonStringList) List<PlacesResponse>?
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toFieldsMask({String? parentKey}) List<String>
inherited
toJson() Map<String, dynamic>
override
toJsonMap() Map<String, dynamic>
inherited
toJsonString() String
inherited
toString() String
This is just to suggest children to implement a named constructor to support creating objects fromJson(...) and fromJsonString(...) as easy as T.build().fromJson(...) or T.build().fromJsonString(...)
inherited

Operators

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