13 lines
432 B
TypeScript
13 lines
432 B
TypeScript
import { LeagueWalletViewData } from '@/lib/view-data/leagues/LeagueWalletViewData';
|
|
import { LeagueWalletApiDto } from '@/lib/types/tbd/LeagueWalletApiDto';
|
|
|
|
export class LeagueWalletViewDataBuilder {
|
|
static build(apiDto: LeagueWalletApiDto): LeagueWalletViewData {
|
|
return {
|
|
leagueId: apiDto.leagueId,
|
|
balance: apiDto.balance,
|
|
currency: apiDto.currency,
|
|
transactions: apiDto.transactions,
|
|
};
|
|
}
|
|
} |