UserPresence.fromDto constructor
UserPresence.fromDto(
- UserPresence dto
Implementation
factory UserPresence.fromDto(rtpb.UserPresence dto) => UserPresence(
userId: dto.userId,
sessionId: dto.sessionId,
username: dto.username,
persistence: dto.persistence,
status: dto.status.value.isNotEmpty ? dto.status.value : null,
);