TournamentRecordList.fromDto constructor
TournamentRecordList.fromDto(
- 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,
);