BankConnectionsResourceOwnershipRefresh.fromJson constructor

BankConnectionsResourceOwnershipRefresh.fromJson(
  1. Object? json
)

Implementation

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