EmailReference Class
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
Constructor
EmailReference(*, type: Literal['emailNotification'] = NotificationTypes.EMAIL_NOTIFICATION, id: str | None = None, conversationId: str | None = None, htmlBody: str | None = None, **extra_data: Any)
Keyword-Only Parameters
| Name | Description |
|---|---|
|
type
|
Default value: NotificationTypes.EMAIL_NOTIFICATION
|
|
id
|
Default value: None
|
|
conversationId
|
Default value: None
|
|
htmlBody
|
Default value: None
|
Attributes
model_config
@model_serializer def _serialize(self):
omit_if_empty = { k for k, v in self if isinstance(v, list) and not v
}
return {k: v for k, v in self if k not in omit_if_empty and v is not None}
model_config: ClassVar[ConfigDict] = {'alias_generator': <function to_camel>, 'extra': 'allow', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}
conversation_id
conversation_id: str | None
html_body
html_body: str | None
id
id: str | None
type
type: Literal['emailNotification']