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


extension CardTokenPaymentMethodMapper on CardTokenPaymentMethod {
  CardTokenEndpointDTO toDTO() => CardTokenEndpointDTO(
    token: token,
    maskedPan: maskedPan,
  );
}

extension CardTokenPaymentDataDTOMapper on CardTokenEndpointDTO {
  CardTokenPaymentMethod toDomain() => CardTokenPaymentMethod(
    token: token,
    maskedPan: maskedPan,
  );
}
