getAccounts method

Future<List<Account>> getAccounts(
  1. List<String> usernames
)

Implementation

Future<List<Account>> getAccounts(List<String> usernames) async {
  final bodyJson = await _fetchPostData(
    method: 'condenser_api.get_accounts',
    params: [usernames],
  );

  final list = bodyJson['result'] as List<dynamic>;
  return [for (final a in list) Account.fromJson(a as Map<String, dynamic>)];
}