TournamentRecordList.fromDto constructor

TournamentRecordList.fromDto(
  1. TournamentRecordList dto
)

Implementation

factory TournamentRecordList.fromDto(api.TournamentRecordList dto) =>
    TournamentRecordList(
      records: dto.records
          .map((e) => LeaderboardRecord.fromDto(e))
          .toList(growable: false),
      ownerRecords: dto.ownerRecords
          .map((e) => LeaderboardRecord.fromDto(e))
          .toList(growable: false),
      nextCursor: dto.nextCursor,
      previousCursor: dto.prevCursor,
    );