Match.fromRtpb constructor

Match.fromRtpb(
  1. Match dto
)

Implementation

factory Match.fromRtpb(rtpb.Match dto) => Match.realtime(
      matchId: dto.matchId,
      authoritative: dto.authoritative,
      label: dto.label.value,
      size: dto.size,
      presences: dto.presences.map((e) => UserPresence.fromDto(e)).toList(growable: false),
    );