LinkCustomerAccount.fromJson constructor

LinkCustomerAccount.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory LinkCustomerAccount.fromJson(Map<String, dynamic> json) {
  return LinkCustomerAccount(
    accountId: json['accountId'],
    financialInstitutionId: json['financialInstitutionId'] as int,
    financialInstitutionName: json['financialInstitutionName'],
    logoURL: json['logoUrl'],
    iconURL: json['iconUrl'],
    lastFour: json['accountLastFourDigits'],
    type: _parseLinkAccountType(json['accountType']),
    status: _parseLinkAccountStatus(json['accountStatus']),
    preferred: json['preferred'],
    creationDate: json['creationDate'],
  );
}