toJson method Null safety

Map toJson()

Implementation

Map toJson() {
  return {
    "type": getStringFromEnum(JMConversationType.group),
    "groupId": groupId
  };
}