findFellowships method

  1. @override
Future<List<WalletFellowship>> findFellowships(
  1. List<WalletFellowship> walletEntities
)

Fetches all fellowships.

Returns the fetched fellowships.

Implementation

@override
Future<List<brambl.WalletFellowship>> findFellowships(
    List<brambl.WalletFellowship> walletEntities) async {
  try {
    final walletFellowships = await walletFellowshipsStore
        .records(walletEntities.map((c) => c.xIdx))
        .get(_instance);

    return walletFellowships
        .map((json) => brambl.WalletFellowship(
            json!["xIdx"]! as int, json["name"]! as String))
        .toList();
  } catch (e) {
    rethrow;
  }
}