Files
sendico/frontend/pshared/lib/data/mapper/payment/quote/fees.dart
2026-02-24 21:18:23 +01:00

14 lines
467 B
Dart

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());
}