removed legacy from bff
This commit is contained in:
13
frontend/pshared/lib/data/mapper/payment/quote/fees.dart
Normal file
13
frontend/pshared/lib/data/mapper/payment/quote/fees.dart
Normal file
@@ -0,0 +1,13 @@
|
||||
import 'package:pshared/data/dto/payment/quote_fees.dart';
|
||||
import 'package:pshared/data/mapper/payment/fees/line.dart';
|
||||
import 'package:pshared/models/payment/quote/fees.dart';
|
||||
|
||||
extension QuoteFeesDTOMapper on QuoteFeesDTO {
|
||||
QuoteFees toDomain() =>
|
||||
QuoteFees(lines: lines?.map((line) => line.toDomain()).toList());
|
||||
}
|
||||
|
||||
extension QuoteFeesMapper on QuoteFees {
|
||||
QuoteFeesDTO toDTO() =>
|
||||
QuoteFeesDTO(lines: lines?.map((line) => line.toDTO()).toList());
|
||||
}
|
||||
Reference in New Issue
Block a user