WebhookNewContactPayload constructor

WebhookNewContactPayload({
  1. required String messageId,
  2. required String webhookId,
  3. String? webhookName,
  4. required WebhookNewContactPayloadEventNameEnum eventName,
  5. required String contactId,
  6. String? groupId,
  7. String? firstName,
  8. String? lastName,
  9. String? company,
  10. String? primaryEmailAddress,
  11. List<String> emailAddresses = const [],
  12. List<String> tags = const [],
  13. Object? metaData,
  14. required bool optOut,
  15. required DateTime createdAt,
})

Returns a new WebhookNewContactPayload instance.

Implementation

WebhookNewContactPayload({
  required this.messageId,
  required this.webhookId,
  this.webhookName,
  required this.eventName,
  required this.contactId,
  this.groupId,
  this.firstName,
  this.lastName,
  this.company,
  this.primaryEmailAddress,
  this.emailAddresses = const [],
  this.tags = const [],
  this.metaData,
  required this.optOut,
  required this.createdAt,
});