MatchData.fromDto constructor

MatchData.fromDto(
  1. MatchData dto
)

Implementation

factory MatchData.fromDto(rtpb.MatchData dto) => MatchData(
      matchId: dto.matchId,
      presence: UserPresence.fromDto(dto.presence),
      opCode: dto.opCode.toInt(),
      data: dto.data,
      reliable: dto.reliable,
    );