SpecialHourPeriod class

Represents a single time period when a location's operational hours differ from its normal business hours.

A special hour period must represent a range of less than 24 hours. The open_time and start_date must predate the close_time and end_date. The close_time and end_date can extend to 11:59 a.m. on the day after the specified start_date. For example, the following inputs are valid: start_date=2015-11-23, open_time=08:00, close_time=18:00 start_date=2015-11-23, end_date=2015-11-23, open_time=08:00, close_time=18:00 start_date=2015-11-23, end_date=2015-11-24, open_time=13:00, close_time=11:59 The following inputs are not valid: start_date=2015-11-23, open_time=13:00, close_time=11:59 start_date=2015-11-23, end_date=2015-11-24, open_time=13:00, close_time=12:00 start_date=2015-11-23, end_date=2015-11-25, open_time=08:00, close_time=18:00

Constructors

SpecialHourPeriod({TimeOfDay? closeTime, bool? closed, Date? endDate, TimeOfDay? openTime, Date? startDate})
SpecialHourPeriod.fromJson(Map json_)

Properties

closed bool?
If true, end_date, open_time, and close_time are ignored, and the date specified in start_date is treated as the location being closed for the entire day.
getter/setter pair
closeTime TimeOfDay?
Valid values are 00:00-24:00, where 24:00 represents midnight at the end of the specified day field.
getter/setter pair
endDate Date?
The calendar date this special hour period ends on.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
openTime TimeOfDay?
Valid values are 00:00-24:00 where 24:00 represents midnight at the end of the specified day field.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startDate Date?
The calendar date this special hour period starts on.
getter/setter pair

Methods

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

Operators

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