toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'type': type,
'from': from,
'fromName': fromName,
'to': to,
'timestamp': timestamp,
'time': time,
'content': content,
'read': read,
'pk': pk,
};
}