post<Input, Output> abstract method
Future<ServiceResult>
post<Input, Output>(
- Input input, {
- Map<
String, String> ? queryParams, - HeaderBuilder? headerBuilder,
For Rest/ POST operation. When doing POST 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: post<Car,NoResponseExpected>(myCar); It is possible to define a specific HeaderBuilder
Implementation
Future<ServiceResult> post<Input, Output>(Input input,
{Map<String, String>? queryParams, HeaderBuilder? headerBuilder});