MatchmakerMatched.fromDto constructor

MatchmakerMatched.fromDto(
  1. MatchmakerMatched dto
)

Implementation

factory MatchmakerMatched.fromDto(rtpb.MatchmakerMatched dto) =>
    MatchmakerMatched(
      ticket: dto.ticket,
      matchId: dto.matchId,
      token: dto.token,
      users: dto.users
          .map((e) => MatchmakerUser.fromDto(e))
          .toList(growable: false),
      self: MatchmakerUser.fromDto(dto.self),
    );