TreasuryTransactionsResourceBalanceImpact.fromJson constructor

TreasuryTransactionsResourceBalanceImpact.fromJson(
  1. Object? json
)

Implementation

factory TreasuryTransactionsResourceBalanceImpact.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return TreasuryTransactionsResourceBalanceImpact(
    cash: (map['cash'] as num).toInt(),
    inboundPending: (map['inbound_pending'] as num).toInt(),
    outboundPending: (map['outbound_pending'] as num).toInt(),
  );
}