customerUpdate abstract method

  1. @POST.new("${Api.customerUpdate}/{id}")
Future<GenericResponse> customerUpdate({
  1. @Path.new() required int id,
  2. @Header.new("X-UserId") String xUserId = "",
  3. @Body.new() required dynamic body,
  4. @Header.new("Content-Type") String type = "application/json",
})

Implementation

@POST("${Api.customerUpdate}/{id}")
Future<GenericResponse> customerUpdate({
  @Path() required int id,
  @Header("X-UserId") String xUserId = "",
  @Body() required body,
  @Header("Content-Type") String type = "application/json",
});