toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      "imagePath": imagePath,
      "groupName": groupName,
      "latestTime": latestTime?.toJson(),
      "unreadCount": unreadCount,
      "msgType": msgType,
      "recentMsg": recentMsg,
      "isGroup": isGroup,
      "groupId": groupId,
      "isBlocked": isBlocked,
      "opponentUserId": opponentUserId,
    };