getBillDetails abstract method

  1. @GET(Api.getBillDetails)
Future<InvoiceModel> getBillDetails({
  1. @Header("X-User-Id") String xUserId = "",
  2. @Header("Content-Type") String type = "application/json",
  3. @Header("X-Roles") String xRoles = "",
  4. @Query("orderId") required String orderId,
  5. @Query("offset") int offset = 0,
  6. @Query("limit") int limit = 1,
})

Implementation

@GET(Api.getBillDetails)
Future<InvoiceModel> getBillDetails({
  @Header("X-User-Id") String xUserId = "",
  @Header("Content-Type") String type = "application/json",
  @Header("X-Roles") String xRoles = "",
  @Query("orderId") required String orderId,
  @Query("offset") int offset = 0,
  @Query("limit") int limit = 1,
});