blog method

Future<SearchEnvelope<Blog>> blog(
  1. String query, {
  2. Order? sort,
  3. int? page,
  4. int? size,
})

Implementation

Future<SearchEnvelope<Blog>> blog(String query,
    {Order? sort, int? page, int? size}) async {
  return ApiFactory.handleApiError(() async {
    final response = await _dio.get("/v2/search/blog",
        queryParameters: _getParams(query, sort, page, size));
    return SearchEnvelope<Blog>.fromJson(response.data);
  });
}