BusinessOpeningHoursInterval class abstract
Represents an interval of opening hours for a business.
- Available extensions
- Annotations
-
- @freezed
Constructors
- BusinessOpeningHoursInterval({@JsonKey.new(name: 'opening_minute') required int openingMinute, @JsonKey.new(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
-
map<
TResult extends Object?> (TResult $default(_BusinessOpeningHoursInterval value)) → TResult -
Available on BusinessOpeningHoursInterval, provided by the BusinessOpeningHoursIntervalPatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_BusinessOpeningHoursInterval value)?) → TResult? -
Available on BusinessOpeningHoursInterval, provided by the BusinessOpeningHoursIntervalPatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> (TResult $default(_BusinessOpeningHoursInterval value)?, {required TResult orElse()}) → TResult -
Available on BusinessOpeningHoursInterval, provided by the BusinessOpeningHoursIntervalPatterns extension
A variant ofmapthat fallback to returningorElse. -
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