OpeningHours class
Information about business hour of the place.
Documentation: https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places#openinghours
- Inheritance
-
- Object
- Jsonable<
OpeningHours> - OpeningHours
- Available extensions
- Annotations
-
- @JsonSerializable()
- @CopyWith()
Constructors
-
OpeningHours.new({List<
Period> ? periods, List<String> ? weekdayDescriptions, SecondaryHoursType? secondaryHoursType, List<SpecialDay> ? specialDays, DateTime? nextOpenTime, DateTime? nextCloseTime, bool? openNow}) -
OpeningHours.fromJson(Map<
String, dynamic> json) -
factory
Properties
- copyWith → _$OpeningHoursCWProxy
-
Available on OpeningHours, provided by the $OpeningHoursCopyWith extension
Returns a callable class that can be used as follows:instanceOfOpeningHours.copyWith(...)
.no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- nextCloseTime → DateTime?
-
The next time the current opening hours period ends up to 7 days in the
future. This field is only populated if the opening hours period is active
at the time of serving the request.
final
- nextOpenTime → DateTime?
-
The next time the current opening hours period starts up to 7 days in the
future. This field is only populated if the opening hours period is not
active at the time of serving the request.
final
- openNow → bool?
-
Whether the opening hours period is currently active. For regular opening
hours and current opening hours, this field means whether the place is open.
For secondary opening hours and current secondary opening hours, this field
means whether the secondary hours of this place is active.
final
-
periods
→ List<
Period> ? -
The periods that this place is open during the week. The periods are in
chronological order, starting with Sunday in the place-local timezone.
An empty (but not absent) value indicates a place that is never open, e.g.
because it is closed temporarily for renovations.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- secondaryHoursType → SecondaryHoursType?
-
A type string used to identify the type of secondary hours.
final
-
specialDays
→ List<
SpecialDay> ? -
Structured information for special days that fall within the period that the
returned opening hours cover. Special days are days that could impact the
business hours of a place, e.g. Christmas day. Set for currentOpeningHours
and currentSecondaryOpeningHours if there are exceptional hours.
final
-
weekdayDescriptions
→ List<
String> ? -
Localized strings describing the opening hours of this place, one string
for each day of the week. Will be empty if the hours are unknown or could
not be converted to localized text. Example: "Sun: 18:00–06:00"
final
Methods
-
fromJsonList(
List? jsonList) → List< OpeningHours> ? -
inherited
-
fromJsonMap(
Map< String, dynamic> ? json) → OpeningHours? -
override
-
fromJsonString(
String? json) → OpeningHours? -
inherited
-
fromJsonStringList(
String? jsonStringList) → List< OpeningHours> ? -
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