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