createCategory function

Future<HttpRequest> createCategory(
  1. Category obj
)

Implementation

Future<HttpRequest> createCategory(Category obj) async {
  var apiroute = getEndpoint("stock");
  var url = "${apiroute}/info";

  return invokeService("POST", url, jsonEncode(obj.toJson()));
}