|
1 | | -from dataclasses import dataclass |
2 | | -from typing import Dict, Optional, List |
| 1 | +from dataclasses import dataclass, field |
| 2 | +from typing import Dict, Optional, List, Any, Literal, Union |
3 | 3 |
|
4 | | -from dataclasses_json import dataclass_json |
5 | | -from typing_extensions import TypedDict, NotRequired, Literal |
6 | | -from nylas.models.events import Conferencing |
| 4 | +from dataclasses_json import dataclass_json, config |
| 5 | +from typing_extensions import TypedDict, NotRequired |
| 6 | +from nylas.models.events import Conferencing, _decode_conferencing |
7 | 7 | from nylas.models.availability import AvailabilityRules, OpenHours |
8 | 8 |
|
9 | 9 | BookingType = Literal["booking", "organizer-confirmation"] |
@@ -161,7 +161,9 @@ class EventBooking: |
161 | 161 | location: Optional[str] = None |
162 | 162 | timezone: Optional[str] = None |
163 | 163 | booking_type: Optional[BookingType] = None |
164 | | - conferencing: Optional[Conferencing] = None |
| 164 | + conferencing: Optional[Conferencing] = field( |
| 165 | + default=None, metadata=config(decoder=_decode_conferencing) |
| 166 | + ) |
165 | 167 | disable_emails: Optional[bool] = None |
166 | 168 | reminders: Optional[List[BookingReminder]] = None |
167 | 169 |
|
|
0 commit comments