Channel.fromDto constructor

Channel.fromDto(
  1. Channel dto
)

Implementation

factory Channel.fromDto(rtpb.Channel dto) => Channel(
      id: dto.id,
      presences: dto.presences
          .map((e) => UserPresence.fromDto(e))
          .toList(growable: false),
      self: UserPresence.fromDto(dto.self),
      roomName: dto.roomName,
      groupId: dto.groupId,
      userIdOne: dto.userIdOne,
      userIdTwo: dto.userIdTwo,
    );