toJson method
Encodes this object as JSON.
Implementation
JsonMap toJson() => {
'account_id': accountId,
'event': event.value,
'from': from,
'recipient': recipient,
'subject': subject,
'message_id_header': messageIdHeader,
'id': id,
'user_agent': ?userAgent,
'ip': ?ip,
'is_bot': ?isBot,
'delivery_attempt': ?deliveryAttempt?.toJson(),
};