BankConnectionsResourceBalanceRefresh.fromJson constructor
BankConnectionsResourceBalanceRefresh.fromJson(
- Object? json
Implementation
factory BankConnectionsResourceBalanceRefresh.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return BankConnectionsResourceBalanceRefresh(
lastAttemptedAt: DateTime.fromMillisecondsSinceEpoch(
(map['last_attempted_at'] as int).toInt()),
nextRefreshAvailableAt: map['next_refresh_available_at'] == null
? null
: DateTime.fromMillisecondsSinceEpoch(
(map['next_refresh_available_at'] as int).toInt()),
status:
BankConnectionsResourceBalanceRefreshStatus.fromJson(map['status']),
);
}