getBlogCategories method

Future<Iterable<BlogCategory>> getBlogCategories()

Gets all blog categories

Implementation

Future<Iterable<BlogCategory>> getBlogCategories() async {
  final response = await _get('/api/blog/category');

  return response.data['items'].map<BlogCategory>((e) => BlogCategory.fromJson(e));
}