updateBlogCategory method

Future<void> updateBlogCategory(
  1. BlogCategory blogCategory
)

Updates the given blog category

Implementation

Future<void> updateBlogCategory(BlogCategory blogCategory) async {
  final data = blogCategory.toJson();
  data['parentId'] = blogCategory.parent?.id;
  await _put('/api/blog/category/${blogCategory.id}', data: data);
}