getVisitSurveyCount abstract method

  1. @GET("${Api.getVisitSurveyCount}/{userId}")
Future<VisitsModel> getVisitSurveyCount({
  1. @Path("userId") required String userId,
  2. @Header("X-User-Id") String xUserId = "",
  3. @Header("content-type") String type = "application/x-www-form-urlencoded",
})

Implementation

@GET("${Api.getVisitSurveyCount}/{userId}")
Future<VisitsModel> getVisitSurveyCount({
  @Path("userId") required String userId,
  @Header("X-User-Id") String xUserId = "",
  @Header("content-type") String type = "application/x-www-form-urlencoded",
});