toJson method
Implementation
@override
Map<String, Object?> toJson() => {
if (bounceSubType != null)
"bounce_sub_type": encodeValue(bounceSubType),
if (bounceType != null) "bounce_type": encodeValue(bounceType),
if (complaintSubType != null)
"complaint_sub_type": encodeValue(complaintSubType),
"id": encodeValue(id),
"occurred_at": encodeValue(occurredAt),
"provider": encodeValue(provider),
"provider_message_id": encodeValue(providerMessageId),
if (reason != null) "reason": encodeValue(reason),
if (reasonCode != null) "reason_code": encodeValue(reasonCode),
if (recipient != null) "recipient": encodeValue(recipient),
if (source != null) "source": encodeValue(source),
if (suppressRecipient != null)
"suppress_recipient": encodeValue(suppressRecipient),
if (temporary != null) "temporary": encodeValue(temporary),
"type": encodeValue(type),
};