boolToConnectionStatus function
Implementation
UserConnectionStatus boolToConnectionStatus(bool? isOnline) => isOnline == null
? UserConnectionStatus.notAvailable
: isOnline
? UserConnectionStatus.online
: UserConnectionStatus.offline;