searchCategories function

Future<HttpRequest> searchCategories(
  1. Category obj
)

Implementation

Future<HttpRequest> searchCategories(Category obj) async {
  var apiroute = getEndpoint("stock");
  final jobj = jsonEncode(obj.toJson());
  final search = base64UrlEncode(utf8.encode(jobj));
  var url = "${apiroute}/categories/${search}";

  return invokeService("GET", url, null);
}