BankConnectionsResourceTransactionRefresh.fromJson constructor
BankConnectionsResourceTransactionRefresh.fromJson(
- Object? json
Implementation
factory BankConnectionsResourceTransactionRefresh.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return BankConnectionsResourceTransactionRefresh(
id: (map['id'] as String),
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']),
);
}