SearchResult class Null safety


SearchResult({Geometry? geometry, String? businessStatus, OpeningHours? openingHours, List<Photo>? photos, PlusCode? plusCode, String? formattedAddress, String? name, double? rating, String? icon, String? id, String? placeId, int? priceLevel, String? reference, String? scope, List<String>? types, int? userRatingsTotal, String? vicinity, bool? permanentlyClosed})
SearchResult.fromJson(Map<String, dynamic> json)


businessStatus String?
businessStatus indicates the operational status of the place, if it is a business. If no data exists, business_status is not returned. It can contain one of the following values: OPERATIONAL CLOSED_TEMPORARILY CLOSED_PERMANENTLY
formattedAddress String?
formattedAddress is a string containing the human-readable address of this place. Often this address is equivalent to the "postal address".
geometry Geometry?
geometry contains geometry information about the result, generally including the location (geocode) of the place and (optionally) the viewport identifying its general area of coverage.
hashCode int
The hash code for this object. [...]
read-only, inherited
icon String?
icon contains the URL of a recommended icon which may be displayed to the user when indicating this result.
id String?
id contains id.
name String?
name contains the human-readable name for the returned result. For establishment results, this is usually the business name.
openingHours OpeningHours?
openingHours show opening hours
permanentlyClosed bool?
permanentlyClosed is a boolean flag indicating whether the place has shut down either permanently or temporarily (value true). If the place is operational, or if no data is available, the flag is absent from the response.
@Deprecated('permanently_closed is now deprecated. Instead, use business_status to get the operational status of businesses.'), final
photos List<Photo>?
photos an array of photo objects, each containing a reference to an image.
placeId String?
placeId a textual identifier that uniquely identifies a place. To retrieve information about the place, pass this identifier in the placeId field of a Places API request. For more information about place IDs.
plusCode PlusCode?
plusCode is an encoded location reference, derived from latitude and longitude coordinates, that represents an area: 1/8000th of a degree by 1/8000th of a degree (about 14m x 14m at the equator) or smaller. Plus codes can be used as a replacement for street addresses in places where they do not exist (where buildings are not numbered or streets are not named).
priceLevel int?
priceLevel The price level of the place, on a scale of 0 to 4. The exact amount indicated by a specific value will vary from region to region. Price levels are interpreted as follows: 0 — Free 1 — Inexpensive 2 — Moderate 3 — Expensive 4 — Very Expensive
rating double?
rating contains the place's rating, from 1.0 to 5.0, based on aggregated user reviews.
reference String?
reference contains reference.
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
scope String?
scope contains scope.
types List<String>?
types contains an array of feature types describing the given result. See the list of supported types. XML responses include multiple
userRatingsTotal int?
userRatingsTotal is user ratings total.
vicinity String?
vicinity contains a feature name of a nearby location. Often this feature refers to a street or neighborhood within the given results. The vicinity property is only returned for a Nearby Search.


noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
toString() String
A string representation of this object. [...]


operator ==(Object other) bool
The equality operator. [...]