AccountsResponse.fromJson constructor

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

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']);
}