Converts this object to a JSON map.
Map<String, dynamic> toJson() { return { 'time_zone_name': timeZoneName, 'opening_hours': openingHours.map((interval) => interval.toJson()).toList(), }; }