toJson method
Implementation
@override
Map<String, Object?> toJson() => {
if (from != null) "from": encodeValue(from),
if (replyTo != null) "reply_to": encodeValue(replyTo),
if (headers != null) "headers": encodeValue(headers),
"subject": encodeValue(subject),
"html": encodeValue(html),
};