toJson method

Map<String, dynamic> toJson()

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(),
  };
}