ChannelPresenceEvent.fromDto constructor
ChannelPresenceEvent.fromDto(
- ChannelPresenceEvent dto
Implementation
factory ChannelPresenceEvent.fromDto(rtpb.ChannelPresenceEvent dto) => ChannelPresenceEvent(
channelId: dto.channelId,
roomName: dto.roomName,
groupId: dto.groupId,
joins: dto.joins.map((e) => UserPresence.fromDto(e)).toList(growable: false),
leaves: dto.leaves.map((e) => UserPresence.fromDto(e)).toList(growable: false),
userIdOne: dto.userIdOne,
userIdTwo: dto.userIdTwo,
);