PlaceOpeningHours class
An object describing the opening hours of a place.
- Annotations
-
- @JsonSerializable(fieldRename: FieldRename.snake, explicitToJson: true)
Constructors
-
PlaceOpeningHours({bool? openNow, List<
PlaceOpeningHoursPeriod> ? periods, List<PlaceSpecialDay> ? specialDays, String? type, List<String> ? weekdayText}) -
const
-
PlaceOpeningHours.fromJson(Map<
String, dynamic> json) -
Converts a Map in the format provided by the JSON parser into
an instance of the PlaceOpeningHours class.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- openNow → bool?
-
A boolean value indicating if the place is open at the current time.
final
-
periods
→ List<
PlaceOpeningHoursPeriod> ? -
An array of opening periods covering seven days, starting from Sunday, in chronological order.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
specialDays
→ List<
PlaceSpecialDay> ? -
An array of up to seven entries corresponding to the next seven days.
final
- type → String?
-
A type string used to identify the type of secondary hours
(for example, DRIVE_THROUGH, HAPPY_HOUR, DELIVERY, TAKEOUT, KITCHEN, BREAKFAST, LUNCH, DINNER, BRUNCH, PICKUP, SENIOR_HOURS).
Set for secondary_opening_hours only.
final
-
weekdayText
→ List<
String> ? -
An array of strings describing in human-readable text the hours of the place.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts an instance of the PlaceOpeningHours class into a Map that can be serialized to JSON.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override