getAll method

Future<List<Map<String, dynamic>>> getAll()

Retrieves all vaulted models for the current user.

Requires authentication.

Implementation

Future<List<Map<String, dynamic>>> getAll() async {
  return _retryPolicy.execute(() async {
    final json = await _apiClient.get(
      '/v1/vault/all',
      requiresAuth: true,
    );

    return (json['items'] as List<dynamic>)
        .map((e) => e as Map<String, dynamic>)
        .toList();
  });
}