toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'to': to,
'cc': cc,
'from': from,
'send': send,
'subject': subject,
'text': text,
'html': html,
'attachments': attachments.map((item) => item.toJson()).toList(),
};
}