toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'messageId': messageId,
'title': title,
'body': body,
'preview': preview,
'created': created,
'archived': archived,
'read': read,
'opened': opened,
'actions': actions?.map((action) => {
'content': action.content,
'href': action.href,
'data': action.data,
}).toList(),
'data': data,
};
}