AccountsResponse.fromJson constructor
Implementation
factory AccountsResponse.fromJson(Map<String, dynamic> json) {
List<Account>? accounts = (json['accounts'] as List?)
?.map((item) => Account.fromJson(item))
.toList();
return AccountsResponse(
accounts: accounts, pendingItems: json['pendingItems']);
}