get<Output> abstract method

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

For Rest/ GET operation. queryParams will add the parameters as a query url/?key1=value1&key2=value2... pathParams will transform any value such as {key} in a url, for instance if the URL defined is '/customer/{customerId}' then any key/value in the map such as pathParamscustomerId='123456' will be transformed as '/customer/123456' It is possible to define a specific HeaderBuilder

Implementation

Future<ServiceResult> get<Output>(
    {Map<String, String>? queryParams,
    Map<String, String>? pathParams,
    HeaderBuilder? headerBuilder});