import 'package:pshared/api/responses/wallet_balance.dart';
import 'package:pshared/api/responses/wallets.dart';
import 'package:pshared/data/mapper/wallet/balance.dart';
import 'package:pshared/data/mapper/wallet/wallet.dart';
import 'package:pshared/models/wallet/balance.dart';
import 'package:pshared/models/wallet/wallet.dart';

extension WalletsResponseMapper on WalletsResponse {
  List<WalletModel> toDomain() => wallets.map((w) => w.toDomain()).toList();
}

extension WalletBalanceResponseMapper on WalletBalanceResponse {
  WalletBalance toDomain() => balance.toDomain();
}
