BankConnectionsResourceBalanceApiResourceCreditBalance.fromJson constructor

BankConnectionsResourceBalanceApiResourceCreditBalance.fromJson(
  1. Object? json
)

Implementation

factory BankConnectionsResourceBalanceApiResourceCreditBalance.fromJson(
    Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return BankConnectionsResourceBalanceApiResourceCreditBalance(
      used: map['used'] == null
          ? null
          : (map['used'] as Map).cast<String, Object?>().map((
                key,
                value,
              ) =>
                  MapEntry(
                    key,
                    (value as num).toInt(),
                  )));
}