import 'package:pshared/data/dto/payment/currency_pair.dart';
import 'package:pshared/models/payment/currency_pair.dart';

extension CurrencyPairMapper on CurrencyPair {
  CurrencyPairDTO toDTO() => CurrencyPairDTO(
        base: base,
        quote: quote,
      );
}

extension CurrencyPairDTOMapper on CurrencyPairDTO {
  CurrencyPair toDomain() => CurrencyPair(
        base: base,
        quote: quote,
      );
}
