patch method

Future<Map<String, dynamic>?> patch(
  1. String path, {
  2. Map<String, dynamic>? parameters,
  3. Dto? body,
  4. bool? exemptClient,
  5. bool? requireAuthorization,
})
inherited

Implementation

Future<Map<String, dynamic>?> patch(String path, {
  Map<String, dynamic>? parameters,
  Dto? body,
  bool? exemptClient,
  bool? requireAuthorization
}) async {
  var response = await http.patch(
    uri(path, parameters: parameters),
    headers: headers(
      contentType: body == null ? null: 'application/json',
      exemptClient: exemptClient,
      requireAuthorization: requireAuthorization
    ),
  );
  return checkAndGetBody(response);
}