fetchSecrets static method
Implementation
static Future<List<Secret>> fetchSecrets() async {
final response = await _dio.get(ApiRoutes.secrets,
queryParameters: {"expand": "author", "sort": "-created"});
final List<dynamic> json = response.data['items'];
final items = json.map((e) => Secret.fromJsonWithExpand(e)).toList();
return items;
}