WebhookNewEmailPayload class

Constructors

WebhookNewEmailPayload({required String messageId, required String webhookId, required WebhookNewEmailPayloadEventNameEnum eventName, String? webhookName, required String inboxId, String? domainId, required String emailId, required DateTime createdAt, List<String> to = const [], required String from, List<String> cc = const [], List<String> bcc = const [], String? subject, List<AttachmentMetaData> attachmentMetaDatas = const []})
Returns a new WebhookNewEmailPayload instance.

Properties

attachmentMetaDatas List<AttachmentMetaData>
List of attachment meta data objects if attachments present
getter/setter pair
bcc List<String>
List of BCC recipients email addresses that the email was addressed to. See recipients object for names.
getter/setter pair
cc List<String>
List of CC recipients email addresses that the email was addressed to. See recipients object for names.
getter/setter pair
createdAt DateTime
Date time of event creation
getter/setter pair
domainId String?
Id of the domain that received an email
getter/setter pair
emailId String
ID of the email that was received. Use this ID for fetching the email with the EmailController.
getter/setter pair
eventName WebhookNewEmailPayloadEventNameEnum
Name of the event type webhook is being triggered for.
getter/setter pair
from String
Who the email was sent from. An email address - see fromName for the sender name.
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
inboxId String
Id of the inbox
getter/setter pair
messageId String
Idempotent message ID. Store this ID locally or in a database to prevent message duplication.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subject String?
The subject line of the email message as specified by SMTP subject header
getter/setter pair
to List<String>
List of To recipient email addresses that the email was addressed to. See recipients object for names.
getter/setter pair
webhookId String
ID of webhook entity being triggered
getter/setter pair
webhookName String?
Name of the webhook being triggered
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override

Static Methods

fromJson(dynamic value) WebhookNewEmailPayload?
Returns a new WebhookNewEmailPayload instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) List<WebhookNewEmailPayload>?
mapFromJson(dynamic json) Map<String, WebhookNewEmailPayload>
mapListFromJson(dynamic json, {bool growable = false}) Map<String, List<WebhookNewEmailPayload>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.