Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
649 B
2
Indexable
Never
class MySpecilistRepo {
  final BaseApiServices _apiServices = NetworkApiService();

  Future<dynamic> dashboardApi(String userId,String productCategoryId) async {
    try {
      var params = {
        "getOtherCategoryCompaniesList_req": [
          {
            "requestInfo": {
              "user_id": userId,
              "product_category_id": productCategoryId
            }
          }
        ]
      };

      dynamic response =
          await _apiServices.authApiResponse(AppUrl.GET_LIST_OF_POOJA, params);
      print("dashboard $response");
      return Poojlistmodel.fromJson(response);
    } catch (e) {
      rethrow;
    }
  }
}