BusinessOpeningHoursInterval class abstract
Represents an interval of opening hours for a business.
- Annotations
-
- @freezed
Constructors
- BusinessOpeningHoursInterval.new({@JsonKey(name: 'opening_minute') required int openingMinute, @JsonKey(name: 'closing_minute') required int closingMinute})
-
Creates a BusinessOpeningHoursInterval object.
constfactory
-
BusinessOpeningHoursInterval.fromJson(Map<
String, dynamic> json) -
Creates a BusinessOpeningHoursInterval object from a JSON map.
factory
Properties
- closingMinute → int
-
The minute's sequence number in a week, starting on Monday, marking the end
of the time interval during which the business is open; 0 - 8 24 60
no setterinherited
-
copyWith
→ $BusinessOpeningHoursIntervalCopyWith<
BusinessOpeningHoursInterval> -
Create a copy of BusinessOpeningHoursInterval
with the given fields replaced by the non-null parameter values.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- openingMinute → int
-
The minute's sequence number in a week, starting on Monday, marking the start
of the time interval during which the business is open; 0 - 7 24 60
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this BusinessOpeningHoursInterval to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited