getMessaging method

Future<UserMessagingVO> getMessaging(
  1. String userId
)

Implementation

Future<UserMessagingVO> getMessaging(String userId) async {
  try {
    final userModel = await _userMessagingDataService.getMessaging(userId);
    final vo = UserMessagingVO.fromModel(userModel);
    return vo;
  } catch (e) {
    if (e is RdevException) {
      throw UserMessagingServiceException(
          code: e.code, message: e.message, stackTrace: e.stackTrace);
    }
    throw UserMessagingServiceException();
  }
}