+ quotation provider
This commit is contained in:
16
frontend/pshared/lib/data/mapper/payment/currency_pair.dart
Normal file
16
frontend/pshared/lib/data/mapper/payment/currency_pair.dart
Normal file
@@ -0,0 +1,16 @@
|
||||
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,
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user