toJson method Null safety

Map toJson()

Implementation

Map toJson() {
  return {
    'title': title,
    'conversationType': getStringFromEnum(conversationType),
    'unreadCount': unreadCount,
    'extras': extras.toString(),
  };
}