toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'id': id,
'type': type,
'server': server,
'from': from.map((item) => item.toJson()).toList(),
'to': to.map((item) => item.toJson()).toList(),
'cc': cc.map((item) => item.toJson()).toList(),
'bcc': bcc.map((item) => item.toJson()).toList(),
'received': received,
'subject': subject,
'summary': summary,
'attachments': attachments,
};
}