BusinessOpeningHours class abstract

Represents the opening hours of a business.

Available extensions
Annotations
  • @freezed

Constructors

BusinessOpeningHours({@JsonKey.new(name: 'time_zone_name') required String timeZoneName, @JsonKey.new(name: 'opening_hours') required List<BusinessOpeningHoursInterval> openingHours})
Creates a BusinessOpeningHours object.
const
factory
BusinessOpeningHours.fromJson(Map<String, dynamic> json)
Creates a BusinessOpeningHours object from a JSON map.
factory

Properties

copyWith → $BusinessOpeningHoursCopyWith<BusinessOpeningHours>
Create a copy of BusinessOpeningHours with the given fields replaced by the non-null parameter values.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
openingHours List<BusinessOpeningHoursInterval>
Opening hours intervals for the business.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timeZoneName String
Unique name of the time zone for which the opening hours are defined.
no setterinherited

Methods

map<TResult extends Object?>(TResult $default(_BusinessOpeningHours value)) → TResult

Available on BusinessOpeningHours, provided by the BusinessOpeningHoursPatterns extension

A switch-like method, using callbacks.
mapOrNull<TResult extends Object?>(TResult? $default(_BusinessOpeningHours value)?) → TResult?

Available on BusinessOpeningHours, provided by the BusinessOpeningHoursPatterns extension

A variant of map that fallback to returning null.
maybeMap<TResult extends Object?>(TResult $default(_BusinessOpeningHours value)?, {required TResult orElse()}) → TResult

Available on BusinessOpeningHours, provided by the BusinessOpeningHoursPatterns extension

A variant of map that fallback to returning orElse.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes this BusinessOpeningHours to a JSON map.
inherited
toString() String
A string representation of this object.
inherited

Operators

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