patch<Input, Output> abstract method

Future<ServiceResult> patch<Input, Output>(
  1. Input input, {
  2. Map<String, String>? queryParams,
  3. HeaderBuilder? headerBuilder,
})

For Rest/ PATCH operation. When doing PATCH you have to define the return type expected, even if it is the same as Input In case no return value is expected, you must use NoResponseExpected, for instance: put<Car,NoResponseExpected>(myCar); It is possible to define a specific HeaderBuilder

Implementation

Future<ServiceResult> patch<Input, Output>(Input input,
    {Map<String, String>? queryParams, HeaderBuilder? headerBuilder});