toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'messageId'] = this.messageId;
json[r'webhookId'] = this.webhookId;
json[r'eventName'] = this.eventName;
if (this.webhookName != null) {
json[r'webhookName'] = this.webhookName;
} else {
json[r'webhookName'] = null;
}
json[r'inboxId'] = this.inboxId;
json[r'pixelId'] = this.pixelId;
json[r'sentEmailId'] = this.sentEmailId;
json[r'recipient'] = this.recipient;
json[r'createdAt'] = this.createdAt.toUtc().toIso8601String();
return json;
}