put<Input, Output> abstract method

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

For Rest/ PUT operation. When doing PUT 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> put<Input, Output>(Input input,
    {Map<String, String>? queryParams, HeaderBuilder? headerBuilder});