BusinessDetails class

This endpoint returns detailed business content.

Note: at this time, the API does not return businesses without any reviews.

Constructors

BusinessDetails({Categories? categories, Coordinates? coordinates, String? displayPhone, HoursList? hours, String? id, String? alias, String? imageUrl, bool? isClaimed, bool? isClosed, Location? location, Messaging? messaging, String? name, String? phone, List<String>? photos, String? price, double? rating, int? reviewCount, String? url, List<String>? transactions, SpecialHoursList? specialHours, Map<String, dynamic>? attributes})
BusinessDetails.fromJson(String source)
factory
BusinessDetails.fromMap(Map<String, dynamic>? map)
factory

Properties

alias String?
Unique Yelp alias of this business. Can contain unicode characters.
final
attributes Map<String, dynamic>?
A mapping of attribute names ie. "Ambience" or "Good for Kids", to values. Note: This field will only be visible for Fusion VIP clients granted access to certain attributes.
final
categories Categories?
A list of category title and alias pairs associated with this business.
final
coordinates Coordinates?
The coordinates of this business.
final
displayPhone String?
Phone number of the business formatted nicely to be displayed to users. The format is the standard phone number format for the business's country.
final
hashCode int
Note: id is unique per business so id, alias, and name are sufficient for the hashCode
no setteroverride
hours HoursList?
Opening hours of the business.
final
id String?
Unique Yelp ID of this business.
final
imageUrl String?
URL of photo for this business.
final
isClaimed bool?
Whether business has been claimed by a business owner
final
isClosed bool?
Whether business has been (permanently) closed
final
location Location?
The location of this business, including address, city, state, zip code and country.
final
messaging Messaging?
Contains Business Messaging / Request a Quote information for this business. Note: This field only appears in the response for businesses that have messaging enabled.
final
name String?
Name of this business.
final
phone String?
Phone number of the business.
final
photos List<String>?
URLs of up to three photos of the business.
final
price String?
Price level of the business ie. $, $$, $$$ or $$$$.
final
rating double?
Rating for this business ie. 1, 1.5, ... 4.5, 5.
final
reviewCount int?
Number of reviews for this business.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
specialHours SpecialHoursList?
Out of the ordinary hours for the business that apply on certain dates.
final
transactions List<String>?
A list of Yelp transactions that the business is registered for. Current supported values are "pickup", "delivery", and "restaurant_reservation".
final
url String?
URL for business page on Yelp.
final

Methods

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

Operators

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