toJson method
Implementation
@override
Map<String, Object?> toJson() => {
"channel": encodeValue(channel),
if (attachments != null) "attachments": encodeValue(attachments),
if (sms != null) "sms": encodeValue(sms),
if (email != null) "email": encodeValue(email),
};