BusinessOpeningHours class abstract

Represents the opening hours of a business.

Annotations
  • @freezed

Constructors

BusinessOpeningHours.new({@JsonKey(name: 'time_zone_name') required String timeZoneName, @JsonKey(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

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