list method
Get all API keys
Implementation
Future<List<ApiKey>> list() async {
try {
final res = await super.dio.get('/api-key/list', options: await super.getOptions(isTokenRequired: true));
return (res.data as List).map((e) => ApiKey.fromJson(e)).toList();
} catch (e) {
final message = getErrorMessage(e);
if (message == null) rethrow;
throw message;
}
}