import 'package:json_annotation/json_annotation.dart'; import 'package:pshared/data/dto/wallet/money.dart'; part 'balance.g.dart'; @JsonSerializable() class WalletBalanceDTO { final MoneyDTO? available; final MoneyDTO? pendingInbound; final MoneyDTO? pendingOutbound; final String? calculatedAt; const WalletBalanceDTO({ required this.available, required this.pendingInbound, required this.pendingOutbound, required this.calculatedAt, }); factory WalletBalanceDTO.fromJson(Map json) => _$WalletBalanceDTOFromJson(json); Map toJson() => _$WalletBalanceDTOToJson(this); }