postDetails method

Future<ProductModel?> postDetails()

Implementation

Future<ProductModel?> postDetails() async {
  final webserviceHelper = WebserviceHelper(
    endPointType: Endpoint.addPost,
    path: [],
    params: {
      "title": "sunt aut facere repellat provident occaecati excepturi optio reprehenderit",
      "body":
          "quia et suscipit\nsuscipit recusandae consequuntur expedita et cum\nreprehenderit molestiae ut ut quas totam\nnostrum rerum est autem sunt rem eveniet architecto",
    },
  );
  final map = await webserviceHelper.postNormal();
  Utils.debugLog(title: "postDetails", object: " $map ${map['data'].runtimeType}");
  final ProductModel products = ProductModel.fromJson(map);

  return products;
}