ledger account service basis

This commit is contained in:
Stephan D
2026-01-22 01:00:55 +01:00
parent 62ff96b90e
commit 8e46bc6061
22 changed files with 118 additions and 65 deletions

View File

@@ -0,0 +1,17 @@
import 'package:pshared/data/dto/payment/money.dart';
import 'package:pshared/models/money.dart';
extension MoneyMapper on Money {
MoneyDTO toDTO() => MoneyDTO(
amount: amount,
currency: currency,
);
}
extension MoneyDTOMapper on MoneyDTO {
Money toDomain() => Money(
amount: amount,
currency: currency,
);
}