toJson method

Map<String, dynamic> toJson()

Implementation

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