BusinessOpeningHours constructor
const
BusinessOpeningHours({
- @JsonKey(name: 'time_zone_name') required String timeZoneName,
- @JsonKey(name: 'opening_hours') required List<
BusinessOpeningHoursInterval> openingHours,
Creates a BusinessOpeningHours object.
Implementation
const factory BusinessOpeningHours({
/// Unique name of the time zone for which the opening hours are defined.
@JsonKey(name: 'time_zone_name') required String timeZoneName,
/// Opening hours intervals for the business.
@JsonKey(name: 'opening_hours')
required List<BusinessOpeningHoursInterval> openingHours,
}) = _BusinessOpeningHours;