All checks were successful
ci/woodpecker/push/billing_fees Pipeline was successful
ci/woodpecker/push/bff Pipeline was successful
ci/woodpecker/push/db Pipeline was successful
ci/woodpecker/push/chain_gateway Pipeline was successful
ci/woodpecker/push/fx_ingestor Pipeline was successful
ci/woodpecker/push/fx_oracle Pipeline was successful
ci/woodpecker/push/frontend Pipeline was successful
ci/woodpecker/push/nats Pipeline was successful
ci/woodpecker/push/ledger Pipeline was successful
ci/woodpecker/push/notification Pipeline was successful
ci/woodpecker/push/payments_orchestrator Pipeline was successful
20 lines
602 B
Dart
20 lines
602 B
Dart
import 'package:pshared/data/dto/payment/crypto_address.dart';
|
|
import 'package:pshared/models/payment/methods/crypto_address.dart';
|
|
|
|
|
|
extension CryptoAddressPaymentMethodMapper on CryptoAddressPaymentMethod {
|
|
CryptoAddressPaymentDataDTO toDTO() => CryptoAddressPaymentDataDTO(
|
|
address: address,
|
|
network: network,
|
|
destinationTag: destinationTag,
|
|
);
|
|
}
|
|
|
|
extension CryptoAddressPaymentDataDTOMapper on CryptoAddressPaymentDataDTO {
|
|
CryptoAddressPaymentMethod toDomain() => CryptoAddressPaymentMethod(
|
|
address: address,
|
|
network: network,
|
|
destinationTag: destinationTag,
|
|
);
|
|
}
|