SessionAccountHolder.fromJson constructor

SessionAccountHolder.fromJson(
  1. Object? json
)

Implementation

factory SessionAccountHolder.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return SessionAccountHolder(
    account: map['account'] == null ? null : (map['account'] as String),
    customer: map['customer'] == null ? null : (map['customer'] as String),
    type: BankConnectionsResourceAccountholderType.fromJson(map['type']),
  );
}