Some checks failed
ci/woodpecker/push/chain_gateway Pipeline was successful
ci/woodpecker/push/billing_fees Pipeline was successful
ci/woodpecker/push/bff Pipeline was successful
ci/woodpecker/push/frontend Pipeline was successful
ci/woodpecker/push/db Pipeline was successful
ci/woodpecker/push/fx_ingestor Pipeline was successful
ci/woodpecker/push/fx_oracle Pipeline was successful
ci/woodpecker/push/nats Pipeline was successful
ci/woodpecker/push/ledger Pipeline was successful
ci/woodpecker/push/notification Pipeline was successful
ci/woodpecker/push/payments_orchestrator Pipeline was successful
ci/woodpecker/push/bump_version Pipeline failed
25 lines
642 B
Dart
25 lines
642 B
Dart
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<String, dynamic> json) => _$WalletBalanceDTOFromJson(json);
|
|
Map<String, dynamic> toJson() => _$WalletBalanceDTOToJson(this);
|
|
}
|